通常情况下,git svn clone
可以很好的完成任务。比如转换Google v8
git svn clone -s http://v8.googlecode.com/svn/ v8
但是最近experimental
branch发生了变化,git svn fetch
无法继续。其实我们完全可以忽略这个branch,方法是枚举所有想要fetch的branch,原来的配置如下:
[svn-remote "svn"] url = http://v8.googlecode.com/svn fetch = trunk:refs/remotes/trunk branches = branches/*:refs/remotes/* tags = tags/*:refs/remotes/tags/*
修改后如下:
[svn-remote "svn"] url = http://v8.googlecode.com/svn fetch = trunk:refs/remotes/trunk fetch = branches/bleeding_edge:refs/remotes/bleeding_edge tags = tags/*:refs/remotes/tags/*