1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-BRANCH" 1 "" "" ""
22 git-branch \- Create a new branch, or remove an old one
26 \fIgit\-branch\fR [[\-f] <branchname> [<start\-point>]]
27 \fIgit\-branch\fR (\-d | \-D) <branchname>
33 If no argument is provided, show available branches and mark current branch with star\&. Otherwise, create a new branch of name <branchname>\&. If a starting point is also specified, that will be where the branch is created, otherwise it will be created at the current HEAD\&.
36 With a \-d or \-D option, <branchname> will be deleted\&.
42 Delete a branch\&. The branch must be fully merged\&.
46 Delete a branch irrespective of its index status\&.
50 Force a reset of <branchname> to <start\-point> (or current head)\&.
54 The name of the branch to create or delete\&.
58 Where to create the branch; defaults to HEAD\&. This option has no meaning with \-d and \-D\&.
63 Start development off of a known tag
66 $ git clone git://git\&.kernel\&.org/pub/scm/\&.\&.\&./linux\-2\&.6 my2\&.6
68 $ git branch my2\&.6\&.14 v2\&.6\&.14
69 $ git checkout my2\&.6\&.14
71 These two steps are the same as "checkout \-b my2\&.6\&.14 v2\&.6\&.14"\&.
75 Delete unneeded branch
78 $ git clone git://git\&.kernel\&.org/\&.\&.\&./git\&.git my\&.git
82 delete todo branch even if the "master" branch does not have all
83 commits from todo branch\&.
89 Written by Linus Torvalds <torvalds@osdl\&.org> and Junio C Hamano <junkio@cox\&.net>
94 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
99 Part of the \fBgit\fR(7) suite