Autogenerated man pages for v1.2.4-gf61c2
[git.git] / man1 / git-branch.1
index 071f656..a5c574f 100755 (executable)
 ..
 .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"
 
@@ -44,11 +44,15 @@ Delete a branch\&. The branch must be fully merged\&.
 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"
@@ -56,23 +60,27 @@ Where to create the branch; defaults to HEAD\&. This option has no meaning with
 .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"