An ancient ASCII multi-branch viewer. Sometimes still the right tool.
git show-branch is an ancient ASCII viewer that summarizes the relationship between several branch tips at once: which commits are on which branch, and where they diverge. It predates the modern log graph but is still excellent for fast multi-branch reads.
A column-per-branch matrix: each row is a commit, each column shows whether that commit is reachable from that branch tip. Reading down the columns reveals the divergence point at a glance.
git show-branch [--all] [--remotes] [--list]
[--current] [--topo-order]
[--more=<n>] [--merge-base]
[--reflog=<n>] [<branch>...]| Flag | What it does |
|---|---|
--all | Include all local and remote branches. |
--remotes | Include only remote-tracking branches. |
--list | Print only branch names, like a terse git branch. |
--current | Add a row marking the current HEAD position. |
--topo-order | Sort commits topologically rather than by date. |
--more=<n> | Show <n> additional commits past the merge base. |
--merge-base | Print only the merge base of the listed branches. |
--reflog=<n> | Use the last <n> reflog entries for the named ref. |
git show-branch --more=10 main featuregit show-branch --all --topo-ordergit show-branch --merge-base main featuregit show-branch --reflog=20 maingit log --graph would be too noisy.git merge-base when you also want to see the surrounding commits.Hit each option, then Check answers. Score is recorded; Next is always open.