Skip to content

Commit b106341

Browse files
committed
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
2 parents df786f6 + 9e37969 commit b106341

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-checkout.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,9 @@ before that happens. If we have not yet moved away from commit `f`,
477477
any of these will create a reference to it:
478478

479479
------------
480-
$ git checkout -b foo <1>
481-
$ git branch foo <2>
482-
$ git tag foo <3>
480+
$ git checkout -b foo # or "git switch -c foo" <1>
481+
$ git branch foo <2>
482+
$ git tag foo <3>
483483
------------
484484

485485
<1> creates a new branch `foo`, which refers to commit `f`, and then

0 commit comments

Comments
 (0)