SVN? No. CVS? Nooo. Git? Yes.
Posted by Eric Stein - August 18, 2011 CE @ 06:27:03 UTC
I haven't yet moved over the project pages on my site to reflect it, but I do all my coding on github now (yeah yeah, slow on the uptake, I know). Today I imported a project from CVS (not mine, I just couldn't deal with Sourceforge or CVS) and another from a poorly laid out SVN repository (mine). Here are the incantations.
Skip the -T / bit if you have a nice trunk/ branches/ tags/ layout set up. If you don't because you're bad, leave it.
CVS
Oh, that's not nice. Get rid of that right now.git cvsimport -v -d :pserver:anonymous@projectname.cvs.sourceforge.net:/cvsroot/projectname -o master -C projectname projectname
SVN
For SVN, you'll need a .authors file, which will look like this:username = Joe Schmo <joe@example.org>
Skip the -T / bit if you have a nice trunk/ branches/ tags/ layout set up. If you don't because you're bad, leave it.
git svn clone --no-metadata -s svn://svn.example.com/projectname projectname -T / -A.authors
Last Edited August 18, 2011 CE @ 06:29:05 UTC
Post a Comment