]>
Commit | Line | Data |
---|---|---|
215a7ad1 JH |
1 | git-branch(1) |
2 | ============= | |
7fc9d69f JH |
3 | |
4 | NAME | |
5 | ---- | |
d4072c97 | 6 | git-branch - Create a new branch, or remove an old one. |
7fc9d69f JH |
7 | |
8 | SYNOPSIS | |
9 | -------- | |
d4072c97 | 10 | 'git-branch' [-d | -D] [<branchname> [start-point]] |
7fc9d69f JH |
11 | |
12 | DESCRIPTION | |
13 | ----------- | |
52a22d1e LAS |
14 | If no argument is provided, show available branches and mark current |
15 | branch with star. Otherwise, create a new branch of name <branchname>. | |
7fc9d69f | 16 | |
52a22d1e LAS |
17 | If a starting point is also specified, that will be where the branch is |
18 | created, otherwise it will be created at the current HEAD. | |
7fc9d69f JH |
19 | |
20 | OPTIONS | |
21 | ------- | |
d4072c97 AE |
22 | -d:: |
23 | Delete a branch. The branch must be fully merged. | |
24 | ||
25 | -D:: | |
26 | Delete a branch irrespective of its index status. | |
27 | ||
52a22d1e | 28 | <branchname>:: |
d4072c97 | 29 | The name of the branch to create or delete. |
7fc9d69f | 30 | |
52a22d1e | 31 | start-point:: |
d4072c97 AE |
32 | Where to create the branch; defaults to HEAD. This |
33 | option has no meaning with -d and -D. | |
7fc9d69f JH |
34 | |
35 | Author | |
36 | ------ | |
37 | Written by Linus Torvalds <torvalds@osdl.org> and Junio C Hamano <junkio@cox.net> | |
38 | ||
39 | Documentation | |
40 | -------------- | |
41 | Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>. | |
42 | ||
43 | GIT | |
44 | --- | |
a7154e91 | 45 | Part of the gitlink:git[7] suite |
7fc9d69f | 46 |