Guest User

Untitled

a guest
May 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. I don't understand Git.
  2. -----------------------
  3.  
  4. Why am I told I'm ahead of `origin/master` by `1 commit`?
  5.  
  6. Why does it go away after what appears to be a no-op `git push`?
  7.  
  8. Here's an example interaction with `git`:
  9.  
  10. dave@machine ~/dev/project > git status
  11. # On branch master
  12. # Your branch is ahead of 'origin/master' by 1 commit.
  13. #
  14. nothing to commit (working directory clean)
  15.  
  16. dave@machine ~/dev/project > git pull origin master
  17. From github.com:davepeck/project
  18. * branch master -> FETCH_HEAD
  19. Already up-to-date.
  20.  
  21. dave@machine ~/dev/project > git status
  22. # On branch master
  23. # Your branch is ahead of 'origin/master' by 1 commit.
  24. #
  25. nothing to commit (working directory clean)
  26.  
  27. dave@machine ~/dev/project > git push origin master
  28. Everything up-to-date
  29.  
  30. dave@machine ~/dev/project > git status
  31. # On branch master
  32. nothing to commit (working directory clean)
Add Comment
Please, Sign In to add comment