【发布时间】:2021-09-09 04:18:34
【问题描述】:
Git 存储库的config 文件在[git-svn remotes] 下有fetch 和branch 路径。配置文件甚至可以有多个fetch 行和多个branch 行。拥有fetch 和branch 的原因是什么(以及两者之间的区别是什么?当我执行git svn fetch --all 时,我会在fetch 和所有其他branch 行中获得主干的更新。所以似乎没有区别。如果我只使用多个 branch 列出所有分支并且没有 any fetch 行,有什么缺点吗?
[svn-remote "messy-repo"]
url = http://server.org/svn
fetch = trunk/project-a:refs/remotes/project-a/trunk
fetch = branches/demos/june-project-a-demo:refs/remotes/project-a/demos/june-demo
branches = branches/server/*:refs/remotes/project-a/branches/*
branches = branches/demos/2011/*:refs/remotes/project-a/2011-demos/*
【问题讨论】:
-
Git 本身完全忽略了这些; git-svn 对它们做什么取决于 git-svn。我会剪掉 git 标签。
标签: git-svn