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

Git Your branch is ahead of 'origin/master' by X commits解决方法

时间:2018-09-01 20:33:16      阅读:3235      评论:0      收藏:0      [点我收藏+]

标签:代码   stack   eset   flow   tps   sdn   span   tac   csdn   

 

(1)方法1:git fetch origin

(2)方法2(代码还需要):git push origin

(3)方法3 (代码不需要):git reset --hard origin/$branch

  参考:

  https://blog.csdn.net/Thousa_Ho/article/details/73350703

  https://stackoverflow.com/questions/16288176/your-branch-is-ahead-of-origin-master-by-3-commits

  可以先执行下git  diff $branch origin/$branch 看下差异

(4) git pull --rebase

(5)git pull origin cherryPick

  参考:https://blog.csdn.net/u010383937/article/details/72901675

 

Git Your branch is ahead of 'origin/master' by X commits解决方法

标签:代码   stack   eset   flow   tps   sdn   span   tac   csdn   

原文地址:https://www.cnblogs.com/zndxall/p/9571224.html

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