aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-checkout.txt
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2023-04-18 01:00:47 -0600
committerJunio C Hamano <gitster@pobox.com>2023-04-18 15:36:36 -0700
commitf8bc75a55e877e3f3e71c36eae6e1ee8710e5a84 (patch)
tree95304b7e6c40e409fba7b8fea29b7eb0bd137c8c /Documentation/git-checkout.txt
parent667fcf4e15379790f0b609d6a83d578e69f20301 (diff)
downloadgit-f8bc75a55e877e3f3e71c36eae6e1ee8710e5a84.tar.gz
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>
Diffstat (limited to 'Documentation/git-checkout.txt')
-rw-r--r--Documentation/git-checkout.txt4
1 files changed, 0 insertions, 4 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 6bb32ab460..8ddeec63dd 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -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