How to handle multiple branches from Subversion using Git
February 29th, 2008
Well, it turns out somebody (probably named dmo?) did all the hard work: Multiple branches using git-svn
If you’re like me, you need to track multiple branches in the same Git repository. I’m going to use this extensively in the XLsuite repository. I have 2 trunks/mainlines: one for the closed source, and one for the open sourced version, I also have a stable version, and some work in progress branches.
February 29th, 2008 at 02:29 PM
His website doesn’t allow comments so I’ll add this here :)
There’s a simpler way do add those svn remotes without manually editing .git/config. You can find these in man git-svn under Advanced Options.
I’m using this approach in braid and it works great.
February 29th, 2008 at 02:47 PM
Hi,
while Dave was correct about his solution; it used to be the only way. With git 1.5.3 you can do better.
Here is how I track one of the projects in git:
It now becomes really easy to work with multiple branches in svn, they are just branches in git.
-Bart