git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Did config `branch.<name>.fetch` ever exist?

From
muzimuzhi Z <muzimuzhi@gmail.com>
Date
Jan 7, 2023, 17:34 UTC
Message-ID
<CAEg0tHSLyaewkgGs0dEXfwQhKmbiO65bXZVU8t7Kn4WwJ1p0Fw@mail.gmail.com>
Hi all,
(originally posted on stackoverflow: https://stackoverflow.com/q/75040372)

Git configuration `branch.<name>.fetch` is mentioned in the first `git-fetch` example [1]:

> - Update the remote-tracking branches:
>       $ 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..fetch option is used to specify a non-default refspec.

But I can't find its doc in `git-config`'s doc. Did `branch.<name>.fetch` ever exist?

Searching in `git-config`'s doc for configs starting with `branch.` or ending with `.fetch`, it seems `branch.<name>.fetch` is a typo of `remote.<name>.fetch`.

PS: That `git-fetch` example was added in commit d504f69 in 2009. [3]

[1] https://git-scm.com/docs/git-fetch#_examples [2] https://git-scm.com/docs/git-config [3] https://github.com/git/git/commit/d504f6975d34025ed3b5478b657789410b52cdb1

best regards, Yukai Chou

Next: Junio C Hamano
Message 1 of 7 in “Did config `branch.<name>.fetch` ever exist?”
  1. muzimuzhi ZJan 7, 2023
  2. Junio C HamanoJan 8, 2023
  3. doc: fix non-existing config namemuzimuzhi Z, Jan 9, 2023
  4. muzimuzhi ZJan 9, 2023
  5. Junio C HamanoJan 13, 2023
  6. doc: fix non-existent config namemuzimuzhi Z, Jan 14, 2023
  7. Junio C HamanoJan 14, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.