SVN to Git
After coming to love the idea of git and related version control systems, I finally decided to move all of my repos over to it. After quite the ordeal of getting gitosis+gitweb+git-daemon set up on Ubuntu, I'm finally ready to move my main personal repositories from SVN to git. Pretty straightforward, but I thought it would be best if I document it here as well:
The process:
-
Assuming you have git and git-svn installed, go ahead and clone your SVN repository
git svn clone svn+ssh://lfowles.org/home/landon/src/school -
Now, you need to clone what you just got from your SVN repo to a new git repo
git clone --bare school school.git -
That's it!
Now you have a git repository that you can stick in your gitosis repositories directory or wherever you store these things.
Published: April 29, 2009 15:10:41
Author: landon
Comments powered by Disqus