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
To list all unpushed commit in all branches easily you can use this command:
git log --branches @{u}..