小编Jay*_*iya的帖子

svn2git - 命令失败 - 错误:pathspec'master'与git已知的任何文件都不匹配

我们正在尝试使用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 …
Run Code Online (Sandbox Code Playgroud)

svn git svn2git

7
推荐指数
2
解决办法
2311
查看次数

标签 统计

git ×1

svn ×1

svn2git ×1