]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: fix non-existent config name
authorYukai Chou <muzimuzhi@gmail.com>
Sat, 14 Jan 2023 01:12:12 +0000 (09:12 +0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Jan 2023 01:33:32 +0000 (17:33 -0800)
Replace non-existent `branch.<name>.fetch` to `remote.<repository>.fetch`, in
the first example in `git-fetch` doc, which was introduced in
d504f6975d (modernize fetch/merge/pull examples, 2009-10-21).

Rename placeholder `<name>` to `<repository>`, to be consistent with all other
uses in git docs, except that `git-config.txt` uses `remote.<name>.fetch` in
its "Variables" section.

Also add missing monospace markups.

Signed-off-by: Yukai Chou <muzimuzhi@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fetch.txt

index 63d9569e16444237a7583b8c9dafe232eb1d2e42..fba66f14607a5f3f70e87e3fa1d04af90015a277 100644 (file)
@@ -251,10 +251,10 @@ EXAMPLES
 $ git fetch origin
 ------------------------------------------------
 +
-The above command copies all branches from the remote refs/heads/
-namespace and stores them to the local refs/remotes/origin/ namespace,
-unless the branch.<name>.fetch option is used to specify a non-default
-refspec.
+The above command copies all branches from the remote `refs/heads/`
+namespace and stores them to the local `refs/remotes/origin/` namespace,
+unless the `remote.<repository>.fetch` option is used to specify a
+non-default refspec.
 
 * Using refspecs explicitly:
 +