doc: "git checkout -b/-B/--orphan" always takes a branch name
While the synopsis section makes it clear that the new branch name is the parameter to these flags, the option description did not. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Aug 26, 2012 at 11:40 UTC
45aaf0310f2b85d9c3264d1703c82cd5085aaf24
1 file changed
+3
-3
Documentation/git-checkout.txt
+3
-3
@@ -84,11 +84,11 @@ entries; instead, unmerged entries are ignored.
84
When checking out paths from the index, check out stage #2
85
('ours') or #3 ('theirs') for unmerged paths.
86
87
--b::
87
+-b <new_branch>::
88
Create a new branch named <new_branch> and start it at
89
<start_point>; see linkgit:git-branch[1] for details.
90
91
--B::
91
+-B <new_branch>::
92
Creates the branch <new_branch> and start it at <start_point>;
93
if it already exists, then reset it to <start_point>. This is
94
equivalent to running "git branch" with "-f"; see
@@ -124,7 +124,7 @@ explicitly give a name with '-b' in such a case.
124
<commit> is not a branch name. See the "DETACHED HEAD" section
125
below for details.
126
127
---orphan::
127
+--orphan <new_branch>::
128
Create a new 'orphan' branch, named <new_branch>, started from
129
<start_point> and switch to it. The first commit made on this
130
new branch will have no parents and it will be the root of a new