Suppose I have a git repository with several branches. I suspect some of the branches were not pushed upstream, or are outdated, or both (i.e. diverged).
Is there a way to find out which branches are out of sync with remote with one command? (Writing a script is OK but I’d like to know if there’s already such a script).
I’ve done a script. Turns out
git branch -vgives the necessary info.~/bin/git-total.sh: