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
git status
This worked better for me:
git log --oneline @{upstream}..
or:
git log --oneline origin/(remotebranch)..