summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-22 01:21:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-01-22 01:22:00 (GMT)
commitb106341d577a42fbcc8b7155901492d0188b0a20 (patch)
tree9efb489529954e58c19dd138e886eef71d17f7ae /Documentation
parentdf786f6efeaa302fa0bf1d39f46fe2528103e9bc (diff)
parent9e37969e4b1ef56a2fae6cdf7d5d082c449be1b8 (diff)
downloadgit-b106341d577a42fbcc8b7155901492d0188b0a20.zip
git-b106341d577a42fbcc8b7155901492d0188b0a20.tar.gz
git-b106341d577a42fbcc8b7155901492d0188b0a20.tar.bz2
Merge branch 'yo/doc-use-more-switch-c'
Doc update. * yo/doc-use-more-switch-c: doc: add "git switch -c" as another option on detached HEAD
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-checkout.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 4cb9d55..9f116ac 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -477,9 +477,9 @@ before that happens. If we have not yet moved away from commit `f`,
any of these will create a reference to it:
------------
-$ git checkout -b foo <1>
-$ git branch foo <2>
-$ git tag foo <3>
+$ git checkout -b foo # or "git switch -c foo" <1>
+$ git branch foo <2>
+$ git tag foo <3>
------------
<1> creates a new branch `foo`, which refers to commit `f`, and then