Home
This project contains all the tools required to do a conversion of an svn repository (server side, not a checkout) to one or more git repositories.
How does it work
The svn2git repository gets you an application that will do the actual conversion.
The conversion exists of looping over each and every commit in the subversion repository and matching the changes to a ruleset after which the changes are applied to a certain path in a git repo.
The ruleset can specify which git repository to use and thus you can have more than one git repository as a result of running the conversion.
Also noteworthy is that you can have a rule that, for example, changes in svnrepo/branches/foo/2.1/ will appear as a git-branch in a repository.
If you have a proper ruleset the tool will create the git repositories for you and show progress while converting commit by commit.
After it is done you likely want to run git repack -a -d -f to compress the pack file as it can get quite big.
Building the tool
Do a checkout of the svn2git repo ‘git clone git://gitorious.org/svn2git/svn2git.git’ and run qmake and make. You can only build it after having installed libsvn-dev, and naturally Qt. Running the command will give you all the options you can pass to the tool.
KDE
there is a repository kde-ruleset which has several example files and one file that should become the final ruleset for the whole of KDE called ‘kde-rules-main’. See How to Write KDE svn2git Import Rules.

