Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I don't understand Git.
- -----------------------
- 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)
Add Comment
Please, Sign In to add comment