Skip to content

CVS to Git

rolfl edited this page Jul 31, 2011 · 1 revision

Process for migrating JDOM from CVS to GitHub

Make a temporary working folder.

mkdir movejdom
cd movejdom

Set up CVS access

setenv CVSROOT :pserver:anonymous@cvs.jdom.org:/home/cvspublic
cvs login  (and log in).

Get the CVS repo in to git format.

git cvsimport jdom -C core
git cvsimport jdom-test -C test
git cvsimport jdom-contrib -C contrib

Then stitch the three repositories in to one repo:

Download and install the git-stitch-repo from CPAN.org (http://search.cpan.org/~book/Git-FastExport-0.07/script/git-stitch-repo)

Make the target git repository:

mkdir jdom.git
cd jdom.git
git init
git-stitch-repo ../core:core ../test:test ../contrib:contrib | git fast-import

Push the repository to GitHub

git remote rm origin
git remote add origin git@github.com:hunterhacker/jdom.git
git push -u origin master
Something went wrong with that request. Please try again.