我们正在尝试使用 svn2git 实用程序(https://github.com/nirvdrum/svn2git)从 svn 迁移到 git。该实用程序似乎每次都失败并出现以下错误。如果有人看到相同的错误或有更好的选择,请分享。
命令
svn2git https://xyz.xyz.com/svn/svnrepo/ --verbose --authors authors.txt
控制台输出
Running command: git svn init --prefix=svn/ --no-metadata --trunk='trunk' --tags
='tags' --branches='branches' https://xyz.xyz.com/svn/svnrepo/
Running command: git config --local --get user.name
Running command: git config --local svn.authorsfile authors.txt
Running command: git svn fetch
Running command: git branch -l --no-color
Running command: git branch -r --no-color
Running command: git config --local --get user.name
Running command: git config --local --get user.email
Running command: git checkout -f master
error: pathspec 'master' did not match any file(s) known to git.
command failed:
git checkout -f master
PS 我的 SVN repo URL 也是正确的,它就在树干上方。我正在 Win7 64 位机器上尝试这个。