GIT-SHOW-BRANCH(1) Git Manual GIT-SHOW-BRANCH(1) (NAME) git-show-branch - (SYNOPSIS) git show-branch [-a | --all] [-r | --remotes] [--topo-order | --date-order] [--current] [--color[=] | --no-color] [--sparse] [--more= | --list | --independent | --merge-base] [--no-name | --sha1-name] [--topics] [( | )...] git show-branch (-g | --reflog)[=[,]] [--list] [] (DESCRIPTION) (commit ancestry graph) ( refs/heads / refs/tags) . . showbranch.default . (OPTIONS) SHA-1 ( gitrevisions(7)) . glob refs/ . refs/heads/topic topic/* . -r, --remotes (remote-tracking branches). -a, --all . --current rev . --topo-order . ( ). --date-order --topo-order . --sparse (merges) . . --more= . . . --list --more=-1 . --merge-base (merge bases) . . git-merge-base(1) . --independent . --no-name . --sha1-name ( "master~2" "master") . --topics . . "git show-branch --topics master topic1 topic2" "git rev-list ^master topic1 topic2" . -g, --reflog[=[,]] [] ref-log ref . . . ( HEAD (detached) ). --color[=] ( : * ! + -) . always () never auto . --no-color . --color=never . --more --list --independent --merge-base . (OUTPUT) N N . $GIT_DIR/HEAD * ! . N N . I- I- + . (merge commits) - . SHA-1 . "master" "fixes" "mhf" : $ git show-branch master fixes mhf * [master] Add 'git show-branch'. ! [fixes] Introduce "reset type" flag to "git reset" ! [mhf] Allow "+remote:local" refspec to cause --force when fetching. --- + [mhf] Allow "+remote:local" refspec to cause --force when fetching. + [mhf~1] Use git-octopus when pulling more than one head. + [fixes] Introduce "reset type" flag to "git reset" + [mhf~2] "git fetch --force". + [mhf~3] Use .git/remote/origin, not .git/branches/origin. + [mhf~4] Make "git pull" and "git fetch" default to origin + [mhf~5] Infamous 'octopus merge' + [mhf~6] Retire git-parse-remote. + [mhf~7] Multi-head fetch. + [mhf~8] Start adding the $GIT_DIR/remotes/ support. *++ [master] Add 'git show-branch'. [master] "Add 'git show-branch'" . "fixes" "Introduce "reset type" flag to "git reset"" . "mhf" . "master" . (EXAMPLES) refs/heads : [showbranch] default = --topo-order default = heads/* git show-branch . . $ git show-branch --reflog="10,1 hour ago" --list master reflog . --list . (CONFIGURATION) git-config(1) . : showBranch.default git-show-branch(1). git-show-branch(1) . GIT git(1) Git 2.55.0 2026-06-29 GIT-SHOW-BRANCH(1)