2017-02-20 76 views
0

嗨,我試圖把我的本地LARAVEL項目GitHub上,但它顯示以下錯誤消息:我怎樣才能把我的本地LARAVEL項目的github公共倉庫

To github.com:srungavarapu/LearningLaravel.git 

! [拒絕]主 - >主(非快進) 錯誤:未能將一些文件推送到'[email protected]:srungavarapu/LearningLaravel.git' 提示:由於當前分支的提示是 暗示:其遠程對應。在再次推送之前,集成遠程更改(例如 提示:'git pull ...')。 提示:有關詳細信息,請參閱'git push --help'中的'關於快速轉發的注意事項'。

回答

0

由於錯誤說,本地和遠程分支機構不同步,如果你希望你的遠程分支的變化用力推

git push <remote> <branch> -f 

嘗試,但如果你想在遠程的變化,首先你需要做git pull

0

Updates were rejected because the tip of your current branch is behind

您當前的本地/主站沒有用遠程/主站更新。所以,你需要先Pull然後Push

$ git pull origin master 
$ git push origin master 
相關問題