git branch -vv

Category: Git - Core

git branch -vv

List branches with tracking and ahead-behind info

The doubled -v adds each branch's upstream and how many commits it is ahead of or behind that upstream. It answers whether your local branch has unpushed work at a glance. Compare with git status --short --branch for a single-branch view.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.