diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-03-29 10:38:54 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-02 04:56:58 (GMT) |
commit | 37f80025cdc5c2fe98039d45678f8ca9c7e36b93 (patch) | |
tree | 7f354eb40a2fc96d07336d3c1d101ad1f68c886d /Documentation/git-checkout.txt | |
parent | d333f672aec553e892a93d6dd1082c543f31d2e3 (diff) | |
download | git-37f80025cdc5c2fe98039d45678f8ca9c7e36b93.zip git-37f80025cdc5c2fe98039d45678f8ca9c7e36b93.tar.gz git-37f80025cdc5c2fe98039d45678f8ca9c7e36b93.tar.bz2 |
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>
Diffstat (limited to 'Documentation/git-checkout.txt')
-rw-r--r-- | Documentation/git-checkout.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 99c8c0d..28817cf 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -23,7 +23,7 @@ or the specified tree. If no paths are given, 'git checkout' will also update `HEAD` to set the specified branch as the current branch. -'git checkout' <branch>:: +'git checkout' [<branch>]:: To prepare for working on <branch>, switch to it by updating the index and the files in the working tree, and by pointing HEAD at the branch. Local modifications to the files in the |