Difference between revisions of "Git"

From Jon's Wiki
(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...")
 
Line 9: Line 9:
 
  sudo apt-get install git-cvsimport
 
  sudo apt-get install git-cvsimport
 
  git cvsimport -C meta-extractor.git -p x -v -d $(pwd)/cvs-clone metadata-extractor
 
  git cvsimport -C meta-extractor.git -p x -v -d $(pwd)/cvs-clone metadata-extractor
 +
 +
Now you can push your new git project to Github or somewhere:
 +
 
  cd meta-extractor.git
 
  cd meta-extractor.git
 
  git remote add origin <your-new-git-repo>
 
  git remote add origin <your-new-git-repo>

Revision as of 03:13, 13 June 2014

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

Now you can push your new git project to Github or somewhere:

cd meta-extractor.git
git remote add origin <your-new-git-repo>
git push --tags master

You're good to go!