如中所述
How do I import svn branches rooted in different directories into git using git-svn?
[svn-remote "svn"]
url = svn://svnserver/repo
fetch = trunk:refs/remotes/trunk
branches = branches/*/*:refs/remotes/*
tags = tags/*:refs/remotes/tags/*
这也在
this thread
.
对于更复杂的SVN分支布局(如
branches within trunk!
),在实施git-SVN集成之前,对SVN repo的修改可能首先是有序的。
由于Git1.6,“1.6.x提供了深度克隆,因此多个通配符可以与--branchs选项一起使用”,如中所述
Cloning a Non-Standard Svn Repository with Git-Svn
".
git svn clone https://svn.myrepos.com/myproject web-self-serve --trunk=trunk --branches=branches/*/* --prefix=svn/