Skip to content

Commit ca554bf

Browse files
muzimuzhigitster
authored andcommitted
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 d504f69 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a38d39a commit ca554bf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-fetch.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ EXAMPLES
251251
$ git fetch origin
252252
------------------------------------------------
253253
+
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.
258258

259259
* Using refspecs explicitly:
260260
+

0 commit comments

Comments
 (0)