doc: fix non-existent config name

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>

Yukai Chou committed Jan 14, 2023 at 09:12 UTC ca554bf36ca198fdc908c225acf838c58c4663d7
1 file changed +4 -4
Documentation/git-fetch.txt
+4 -4
@@ -251,10 +251,10 @@ EXAMPLES
251 $ git fetch origin
252 ------------------------------------------------
253 +
254 -The above command copies all branches from the remote refs/heads/
255 -namespace and stores them to the local refs/remotes/origin/ namespace,
256 -unless the branch.<name>.fetch option is used to specify a non-default
257 -refspec.
254 +The above command copies all branches from the remote `refs/heads/`
255 +namespace and stores them to the local `refs/remotes/origin/` namespace,
256 +unless the `remote.<repository>.fetch` option is used to specify a
257 +non-default refspec.
258
259 * Using refspecs explicitly:
260 +