why does it say “Your branch is ahead of origin/master by 857 commits” when I need to *pull* origin master

后端 未结 5 1126
予麋鹿
予麋鹿 2020-12-24 14:16

Firstly, I\'m aware of a number of similarly worded questions, eg:

  • How can I find the location of origin/master in git, and how do I change it?
  • git:
5条回答
  •  独厮守ぢ
    2020-12-24 14:49

    In the end, the Actual solution for the question to correct the problem:

    It was because it needed a git push, after a merge. This just happened to me too, same error message. Andy magoon was right also, because when I did the push, I see a clean slate now, with no bytes having been pushed. However, rebasing is not usually the best course.

        $ git status ./
    On branch master-blah1
    Your branch is ahead of 'origin/master-blah1' by 869 commits.
      (use "git push" to publish your local commits)
    nothing to commit, working directory clean
    
    
        $ git push
        Counting objects: 7, done.
        Delta compression using up to 48 threads.
        Compressing objects: 100% (7/7), done.
        Writing objects: 100% (7/7), 653 bytes | 0 bytes/s, done.
        Total 7 (delta 4), reused 0 (delta 0)
    
    $ git status ./
    On branch master-blah1
    Your branch is up-to-date with 'origin/master-blah1'.
    nothing to commit, working directory clean
    

提交回复
热议问题