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
You can show all commits that you have locally but not upstream with
git log @{u}..
@{u} or @{upstream} means the upstream branch of the current branch (see git rev-parse --help or git help revisions for details).
@{u}
@{upstream}