Git

From Jon's Wiki
Revision as of 03:11, 13 June 2014 by Johnno (talk | contribs) (Created page with "== Importing a CVS project from SourceForge into git == First, grab a clone of the remote CVS repository. The easiest way to do this with a SourceForge without having to actu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Importing a CVS project from SourceForge into git

First, grab a clone of the remote CVS repository. The easiest way to do this with a SourceForge without having to actually use CVS and pserver logins and whatnot is to use rsync:

rsync -avz rsync://meta-extractor.cvs.sourceforge.net/cvsroot/meta-extractor cvs-clone

Now we're going to import the history of the relevant CVS module (in this case, "metadata-extractor") into a new git repository.

sudo apt-get install git-cvsimport
git cvsimport -C meta-extractor.git -p x -v -d $(pwd)/cvs-clone metadata-extractor
cd meta-extractor.git
git remote add origin <your-new-git-repo>
git push --tags master

You're good to go!