Skip to content

Commit d24220b

Browse files
LemmingAvalanchegitster
authored andcommitted
doc: git-checkout: fix placeholder markup
The placeholder markup is underscore (_), not backtick (`) as well. The inline-verbatim markup (backticks) handle interior formatting. This means in this case that it applies HTML `<code>` to the underscores and `<em>` to the placeholder. That is the effect, anyway; we can see from the rest of 042d6f3 (doc: git-checkout: clarify `-b` and `-B`, 2025-09-10) that this was probably an unintended mix-up. Acked-by: Julia Evans <julia@jvns.ca> Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 57da342 commit d24220b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-checkout.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ uncommitted changes.
6161
`git checkout -B <branch> [<start-point>]`::
6262
6363
The same as `-b`, except that if the branch already exists it
64-
resets `_<branch>_` to the start point instead of failing.
64+
resets _<branch>_ to the start point instead of failing.
6565
6666
`git checkout --detach [<branch>]`::
6767
`git checkout [--detach] <commit>`::
@@ -155,7 +155,7 @@ of it").
155155
156156
`-B <new-branch>`::
157157
The same as `-b`, except that if the branch already exists it
158-
resets `_<branch>_` to the start point instead of failing.
158+
resets _<branch>_ to the start point instead of failing.
159159
160160
`-t`::
161161
`--track[=(direct|inherit)]`::

0 commit comments

Comments
 (0)