]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: git-checkout: trivial callout cleanup
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 18 Apr 2023 07:00:47 +0000 (01:00 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Apr 2023 22:36:36 +0000 (15:36 -0700)
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>
Documentation/git-checkout.txt

index 6bb32ab4602aa9b55c935a0d3bb64d56682c7bed..8ddeec63dd2771f29a40fe53565731550986a590 100644 (file)
@@ -483,14 +483,11 @@ $ 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
     updates `HEAD` to refer to branch `foo`. In other words, we'll no longer
     be in detached `HEAD` state after this command.
-
 <2> similarly creates a new branch `foo`, which refers to commit `f`,
     but leaves `HEAD` detached.
-
 <3> creates a new tag `foo`, which refers to commit `f`,
     leaving `HEAD` detached.
 
@@ -529,7 +526,6 @@ $ git checkout master~2 Makefile  <2>
 $ rm -f hello.c
 $ git checkout hello.c            <3>
 ------------
-+
 <1> switch branch
 <2> take a file out of another commit
 <3> restore `hello.c` from the index