Convert Your Project from svn to git

By Xah Lee. Date:

This page shows you how to convert your Google Code svn repository to git.

gitopuss. mascot.

Goto your Google Code page, choose the menu [Administer] tab, and then choose the menu [Source] tab, then change the repository type to Git.

Then, do the following in terminal on your local machine:

git svn clone --stdlayout https://‹projectname› ‹projectname›
cd ‹projectname›
git remote add googlecode‹projectname›
git push --all googlecode

For a project of 1.6k files, it takes about ten minutes.

If you have wiki on Google code, same steps:

git clone‹projectname›.wiki
cd ‹projectname›.wiki
svn export --force http://‹projectname› .
git add .
git commit -m "Initial import of wiki."
git push origin master
The subversion repository will remain accessible at , however, they won't be updated.

I did this for my ErgoEmacs project It went smooth. All commit history are also transferred.