当前位置:   article > 正文

git: Your branch and 'origin/master' have diverged

and have 4 and 8 different commits each, respectively.

git: Your branch and 'origin/master' have diverged - how to throw away local commits? - Stack Overflow
http://stackoverflow.com/questions/19864934/git-your-branch-and-origin-master-have-diverged-how-to-throw-away-local-com

 

git: Your branch and 'origin/master' have diverged - how to throw away local commits - Stack Overflow
http://stackoverflow.com/questions/32630379/git-your-branch-and-origin-master-have-diverged-how-to-throw-away-local-com

 

Question:

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

Resolve:

  1. git fetch origin
  2. git reset --hard origin/master


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

闽ICP备14008679号