当前位置:   article > 正文

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

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

当我们在本地提交到远程仓库的时候,如果遇到上述问题,我们可以首先使用如下命令:

git rebase origin/master 

然后使用

git pull --rebase 

最后使用

git push origin master 

把内容提交到远程仓库上。
直接复制如下运行即可

  1. git rebase origin/master 
  2. git pull --rebase 
  3. git push origin master 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/800778
推荐阅读
相关标签
  

闽ICP备14008679号