Your branch and 'origin/master' have diverged, and have 1 and 1 different commits each, respectively



On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 1 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

當我們在本地提交到遠程倉庫的時候,如果遇到上述問題,我們可以首先使用如下命令:

git rebase origin/master

然后使用

git pull --rebase

最后使用

git push origin master

把內容提交到遠程倉庫上。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM