..
.TH "GIT-SHOW-BRANCH" 1 "" "" ""
.SH NAME
-git-show-branch \- Show branches and their commits.
+git-show-branch \- Show branches and their commits
.SH "SYNOPSIS"
.nf
The following example shows three branches, "master", "fixes" and "mhf":
-.IP
+.nf
$ git show\-branch master fixes mhf
* [master] Add 'git show\-branch'\&.
! [fixes] Introduce "reset type" flag to "git reset"
+ [mhf~7] Multi\-head fetch\&.
+ [mhf~8] Start adding the $GIT_DIR/remotes/ support\&.
*++ [master] Add 'git show\-branch'\&.
+.fi
+
These three branches all forked from a common commit, [master], whose commit message is "Add \fIgit show\-branch\fR\&. "fixes" branch adds one commit \fIIntroduce "reset type"\fR\&. "mhf" branch has many other commits\&. The current branch is "master"\&.
If you keep your primary branches immediately under $GIT_DIR/refs/heads, and topic branches in subdirectories of it, having the following in the configuration file may help:
-.IP
+.nf
[showbranch]
default = \-\-topo\-order
default = heads/*
+.fi
+
With this,git show\-branch without extra parameters would show only the primary branches\&. In addition, if you happen to be on your topic branch, it is shown as well\&.