Month: June 2013

Use git-svn for SVN repositories

Recently I came across the possibility to use git to access SVN repositories. Basically you use the command

git svn ...

to checkout a SVN repository. This is then stored locally on your hard drive and accessible as an ordinary git repository. Updating your local checkout is done by issuing

git svn rebase

committing the changes back to SVN is done easily by issuing a

git svn commit

command.

This solution looks a very nice solution for older code sources which are still using SVN. There are some ifs and buts of course, with one the biggest remarks that branching and merging from your git-svn checkout back to SVN is discouraged because of the very different nature in branching between git and svn.

Leave a Comment