summaryrefslogtreecommitdiffstats
path: root/git-checkout.txt
diff options
context:
space:
mode:
Diffstat (limited to 'git-checkout.txt')
-rw-r--r--git-checkout.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-checkout.txt b/git-checkout.txt
index 4cb9d555b..9f116acdb 100644
--- a/git-checkout.txt
+++ b/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