Skip to content

Commit 1b8bc86

Browse files
committed
Merge branch 'jc/maint-doc-checkout-b-always-takes-branch-name' into maint-1.7.11
The synopsis said "checkout [-B branch]" to make it clear the branch name is a parameter to the option, but the heading for the option description was "-B::", not "-B branch::", making the documentation misleading. * jc/maint-doc-checkout-b-always-takes-branch-name: doc: "git checkout -b/-B/--orphan" always takes a branch name
2 parents 7d9483c + 45aaf03 commit 1b8bc86

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)