Graham Christensen

Coding, making, hardware, and everything else too.

Managing Remote SVN Branches in Git-SVN

This was a major problem I’ve been having with git-svn is how to handle remote branches. There is lots of documentation on SVN, switching to Git, using git-svn, but very little seemed to be related to creating remote branches and then switching to them.

Turns out it was pretty obvious:

To create the branch:

git svn branch foo

To switch to the branch:

git branch foo remotes/foo

To delete a remote branch you have to do it with SVN’s command line tool:

svn rm http://svn.foobar.org/branches/foo
posted on August 25 2010