Skip to content

Commit 37f8002

Browse files
pcloudsgitster
authored andcommitted
git-checkout.txt: fix one syntax line
<branch> can be omitted in this syntax, and it's actually documented a few paragraphs down: You could omit <branch>, in which case the command degenerates to "check out the current branch", which is a glorified no-op with rather expensive side-effects to show only the tracking information, if exists, for the current branch. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d333f67 commit 37f8002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-checkout.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ or the specified tree. If no paths are given, 'git checkout' will
2323
also update `HEAD` to set the specified branch as the current
2424
branch.
2525

26-
'git checkout' <branch>::
26+
'git checkout' [<branch>]::
2727
To prepare for working on <branch>, switch to it by updating
2828
the index and the files in the working tree, and by pointing
2929
HEAD at the branch. Local modifications to the files in the

0 commit comments

Comments
 (0)