I should have done this about 6 months ago... but, nonetheless, I've improved the RubyForge documentation for converting a project from Subversion to Git. The docs now show how to use git svn clone
followed by git gc
and then the initial push to get the Git repository rolling. Suggestions/corrections/comments are welcome, of course.
Note that I do the git svn clone
using the http://
Subversion URL rather than svn://
or svn+ssh://
. Using svn://
will fail for a repository with more than a couple of commits since xinetd is set up to block IPs that hammer in a lot of requests, and using svn+ssh://
just seems wasteful - no need to encrypt all that data.
Doing git gc --aggressive
certainly made a difference for the project I just converted; the disk space dropped from 8.1 MB to 760 KB.
I was also happy to see that although I'm running Git 1.6.3 on my laptop and 1.5 on the server it made no difference. I should upgrade RubyForge's Git installation... anyone know if there's anything particularly hairy involved in upgrading Git from 1.5 to 1.6? Googling around suggests it's no problem, but if anyone knows something different, please let me know, thanks!