第一个示例1branch.<name>.fetch中提到了Git配置:git-fetch
更新远程跟踪分支:
Run Code Online (Sandbox Code Playgroud)$ git fetch origin上面的命令从远程 refs/heads/ 命名空间复制所有分支并将它们存储到本地 refs/remotes/origin/ 命名空间,除非使用branch..fetch 选项指定非默认的 refspec。
git-config但我在s doc中找不到它的文档。曾经branch.<name>.fetch存在过吗?
git-config在的文档中搜索以 开头branch.或结尾的配置.fetch,似乎branch.<name>.fetch是 的拼写错误remote.<name>.fetch。
1此示例是在 2009 年的提交 d504f69中添加的。