当前位置:   article > 正文

[小技巧] git: Your branch and 'origin/master' have diverged

[小技巧] git: Your branch and 'origin/master' have diverged

本文参考:http://stackoverflow.com/questions/19864934/git-your-branch-and-origin-master-have-diverged-how-to-throw-away-local-com

如果不需要保留本地的修改,只要执行下面两步:

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

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

闽ICP备14008679号