The following alias sets up a command that displays branches where the newest commit is only in the local repository and not yet pushed to a remote:
git config --global --add alias.local "log --simplify-by-decoration --all --not --remotes --decorate --oneline"It can subsequently be used simply like:
git local