在Windows上使用svn2git从Subversion迁移到Git

时间:2015-11-28 13:47:32

标签: ruby git svn

我正在使用ruby安装程序从svn迁移到git。我遇到了类似

的错误
        C:\Ruby22-x64\bin>svn2git http://[Domain Name]/svn/trunk/Projname

      1 [main] perl 2296 cygwin_exception::open_stackdumpfile: Dumping stack tra
ce to perl.exe.stackdump
      1 [main] perl 2296 cygwin_exception::open_stackdumpfile: Dumping stack tra
ce to perl.exe.stackdump
[svn-remote "svn"] unknown

command failed:
git svn fetch

C:\Ruby22-x64\bin>

任何人都可以帮我解决这个问题。

1 个答案:

答案 0 :(得分:0)

我不知道为什么git svn init(这个脚本应该调用的)没有这样做,但你可以自己做;把它放在你的.git/config

[svn-remote "svn"]
    fetch = trunk:refs/remotes/svn/master
    url = http://[Domain Name]/svn/trunk/Projname
相关问题