doc: git-checkout: trivial callout cleanup
The callouts are directly tied to the listing above, remove spaces to make it clear they are one and the same. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
Apr 18, 2023 at 01:00 UTC
f8bc75a55e877e3f3e71c36eae6e1ee8710e5a84
1 file changed
-4
Documentation/git-checkout.txt
-4
@@ -483,14 +483,11 @@ $ git checkout -b foo # or "git switch -c foo" <1>
483
$ git branch foo <2>
484
$ git tag foo <3>
485
------------
486
-
486
<1> creates a new branch `foo`, which refers to commit `f`, and then
487
updates `HEAD` to refer to branch `foo`. In other words, we'll no longer
488
be in detached `HEAD` state after this command.
490
-
489
<2> similarly creates a new branch `foo`, which refers to commit `f`,
490
but leaves `HEAD` detached.
493
-
491
<3> creates a new tag `foo`, which refers to commit `f`,
492
leaving `HEAD` detached.
493
@@ -529,7 +526,6 @@ $ git checkout master~2 Makefile <2>
526
$ rm -f hello.c
527
$ git checkout hello.c <3>
528
------------
532
-+
529
<1> switch branch
530
<2> take a file out of another commit
531
<3> restore `hello.c` from the index