Skip to content

Commit 45aaf03

Browse files
committed
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 <[email protected]>
1 parent d0f1ea6 commit 45aaf03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-checkout.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ entries; instead, unmerged entries are ignored.
8484
When checking out paths from the index, check out stage #2
8585
('ours') or #3 ('theirs') for unmerged paths.
8686

87-
-b::
87+
-b <new_branch>::
8888
Create a new branch named <new_branch> and start it at
8989
<start_point>; see linkgit:git-branch[1] for details.
9090

91-
-B::
91+
-B <new_branch>::
9292
Creates the branch <new_branch> and start it at <start_point>;
9393
if it already exists, then reset it to <start_point>. This is
9494
equivalent to running "git branch" with "-f"; see
@@ -124,7 +124,7 @@ explicitly give a name with '-b' in such a case.
124124
<commit> is not a branch name. See the "DETACHED HEAD" section
125125
below for details.
126126

127-
--orphan::
127+
--orphan <new_branch>::
128128
Create a new 'orphan' branch, named <new_branch>, started from
129129
<start_point> and switch to it. The first commit made on this
130130
new branch will have no parents and it will be the root of a new

0 commit comments

Comments
 (0)