pull-only repo's 'git status' saying the branch is ahead of origin/master. Why?

后端 未结 5 1669
别跟我提以往
别跟我提以往 2020-12-10 12:01

So here\'s the situation:

$ git status
# On branch master
# Your branch is ahead of \'origin/master\' by [x] commits.
#

5条回答
  •  悲哀的现实
    2020-12-10 12:50

    In my case - I had two branches in Origin and everytime i pulled a git pull it showed that i was ahead of origin/master by x. Even after hard reseting it to the origin/master like shown in Reset local repository branch to be just like remote repository HEAD.

    The solution occured when i simply ran git fetch and it brought my development branch onto my production server.

提交回复
热议问题