码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-07-13 09:17:54      阅读:58      评论:0      收藏:0      [点我收藏+]

标签:git pull   master   内容   远程   base   push   each   mit   strong   


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

把内容提交到远程仓库上。

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

标签:git pull   master   内容   远程   base   push   each   mit   strong   

原文地址:https://www.cnblogs.com/m987/p/13291356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!