Why am I told I'm ahead of origin/master
by 1 commit
?
Why does it go away after what appears to be a no-op git push
?
Here's an example interaction with git
:
dave@machine ~/dev/project > git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
dave@machine ~/dev/project > git pull origin master
From github.com:davepeck/project
* branch master -> FETCH_HEAD
Already up-to-date.
dave@machine ~/dev/project > git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
dave@machine ~/dev/project > git push origin master
Everything up-to-date
dave@machine ~/dev/project > git status
# On branch master
nothing to commit (working directory clean)
Did you ever get an answer for this? It happens to me too on servers my projects are deployed to. I never want to git push from there.