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