我正在将一个 SVN 项目迁移到 Git。SVN 项目在存储库中具有以下结构。
/trunk
/branches
/tags
因为我希望主干充当主分支,其他分支充当普通 git 分支,标签充当 git 标签。
我在命令下运行
git svn clone --stdlayout <svn-repo-url>
也试过
git svn clone <svn-repo-url> -T trunk -b branches -t tags
对于上述两个命令,我收到以下错误:
fatal: .git\svn\refs\remotes\origin\https;C:\Softwares\Git\index: index file open failed: Invalid argument
(in cleanup) update-index -z --index-info: command returned error: 128
W: +empty_dir: branches/<svn-repo-url>/branches
fatal: Unable to create '<my-git-working-directory>/.git\svn\refs\remotes\origin\https;C:\Softwares\Git\index.lock': Invalid argument
如果我在命令下面运行
git svn clone --trunk=/trunk --branches=/branches --tags=/tags <svn-repo-url>
我收到以下错误
svn-remote.svn: remote ref '/Users/<user-id>/AppData/Local/Programs/Git/trunk:refs/remotes/origin/trunk' must start with 'refs/'
请帮忙