aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-21 17:21:59 -0800
committerJunio C Hamano <gitster@pobox.com>2023-01-21 17:22:00 -0800
commitb106341d577a42fbcc8b7155901492d0188b0a20 (patch)
tree9efb489529954e58c19dd138e886eef71d17f7ae
parentMerge branch 'sk/merge-filtering-strategies-micro-optim' (diff)
parentdoc: add "git switch -c" as another option on detached HEAD (diff)
downloadgit-b106341d577a42fbcc8b7155901492d0188b0a20.tar.gz
git-b106341d577a42fbcc8b7155901492d0188b0a20.zip
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
-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 4cb9d555b4..9f116acdbd 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