Wiki

Meine persönliche Knowledge Base

How to move a GoogleCode SVN Project to GitHub

I recently moved the django-campaign project from GoogleCode to GitHub. The Repository was converted from SVN to Git during the move. Here is how I've done it:

git svn clone --username <my@email> -A authors.txt --stdlayout \
    https://django-campaign.googlecode.com/svn django-campaign
cd django-campaign
git remote add git+ssh://git@github.com/arneb/django-campaign.git
git push -u origin/master

To associate the commits with my GitHub account I created a file authors.txt with the following content:

<my@email> = Arne Brodowski <my@email>
(no author) = No Author <noauthor@noauthor>

The No Author entry is important, because GoogleCode initializes every Repository with an initial commit which has no author information.