..
.TH "GIT-BRANCH" 1 "" "" ""
.SH NAME
-git-branch \- Create a new branch, or remove an old one.
+git-branch \- Create a new branch, or remove an old one
.SH "SYNOPSIS"
-git\-branch [\-d | \-D] [<branchname> [start\-point]]
+\fIgit\-branch\fR [(\-d | \-D) <branchname>] | [[\-f] <branchname> [<start\-point>]]
.SH "DESCRIPTION"
Delete a branch irrespective of its index status\&.
.TP
+\-f
+Force a reset of <branchname> to <start\-point> (or current head)\&.
+
+.TP
<branchname>
The name of the branch to create or delete\&.
.TP
-start\-point
+<start\-point>
Where to create the branch; defaults to HEAD\&. This option has no meaning with \-d and \-D\&.
.SS "Examples"
.TP
Start development off of a know tag
-.IP
+.nf
$ git clone git://git\&.kernel\&.org/pub/scm/\&.\&.\&./linux\-2\&.6 my2\&.6
$ cd my2\&.6
$ git branch my2\&.6\&.14 v2\&.6\&.14
$ git checkout my2\&.6\&.14
These two steps are the same as "checkout \-b my2\&.6\&.14 v2\&.6\&.14"\&.
+.fi
+
.TP
Delete unneeded branch
-.IP
+.nf
$ git clone git://git\&.kernel\&.org/\&.\&.\&./git\&.git my\&.git
$ cd my\&.git
$ git branch \-D todo
delete todo branch even if the "master" branch does not have all
commits from todo branch\&.
+.fi
+
.SH "AUTHOR"