1

我正在尝试使用 subgit 在现有的 SVN 存储库和新的 git 存储库之间创建链接。

SVN 存储库中的目录名称中有空格,我认为当我尝试创建配置时会产生问题。

有办法解决吗?

干杯

4

1 回答 1

0

我是 SubGit 开发人员之一,据我所知,目录名称包含空格时没有问题。

如果分支名称中有空格,请在配置文件中使用空格:

branches = branches/branch with space:refs/heads/branch with space
excludeBranches = branches/branch to exclude

好吧,如果空格是最后一个字符,则必须将值放在引号中,因为 Git 配置格式要求:

branches = "branches/space at the end :refs/heads/spaces at the end "

我还要注意,Git 不允许在分支名称中使用空格,并且在 Git 存储库中,它将被编码为“+”:

refs/heads/spaces+at+the+end+

但在配置中,您使用空格指定其版本。您也可以在 excludePath/includePath 选项中只使用空格:

includePath = /directory with space
excludePath = /directory with space/subdirectory with space

如果您有其他问题或疑问,请留下命令,我会更新答案。

于 2018-02-02T16:59:46.703 回答