dpmWare Just my stuff, nothing else

13Jan/120

Recipe: From SVN to Git without pain

Are you already in love with Git? I'm pretty sure of that, that's the reason why you are reading this, huh?

These are the steps you should follow to migrate an existing SVN repository to a Git one:

1 - Create a file where you will map SVN users to Git users, following this pattern:

svn_user = git_user

This is the one I created to migrate some SVN repositories from Google Code:

$ cat authors_mapping_googlecode
dpecos = Daniel Pecos Martinez
(no author) = Daniel Pecos Martinez

The author (no author) is required to match some commits made by Google in the SVN repository creation process.