Dear git experts,
I'm trying to convert a couple of Subversion repositories to git. The
structure looks like this:
I managed to import project1 like this:
git svn init svn://18.104.22.168
git config svn-remote.svn.fetch "project1/trunk:refs/remotes/git-svn/
git config svn-remote.svn.tags "project1/tags/*:refs/remotes/git-svn/
git config svn-remote.svn.branches "project1/branches/*:refs/remotes/
git config --add svn-remote.svn.branches "project1/releases/*:refs/
But how do I map the single branch "some_branch" in project2?
I tried something like this:
git config --add svn-remote.svn.branches "project2/some_branch:refs/
But it seems that I am forced to use wildcards to specify branches,
e.g. they have to be in a subdirectory.
I guess I could specify:
git config --add svn-remote.svn.branches "project2/*:refs/remotes/
And then later rename branch "extra/some_branch" to "some_branch" and
delete all "extra/*" branches. This seems a bit clumsy. Any better way
to do this? Like directly mapping a single branch?
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at