How can I view any local commits I\'ve made, that haven\'t yet been pushed to the remote repository? Occasionally, git status
will print out that my branch is X
It is not a bug. What you probably seeing is git status after a failed auto-merge where the changes from the remote are fetched but not yet merged.
To see the commits between local repo and remote do this:
git fetch
This is 100% safe and will not mock up your working copy. If there were changes git status
wil show X commits ahead of origin/master
.
You can now show log of commits that are in the remote but not in the local:
git log HEAD..origin