Skip to content

Instantly share code, notes, and snippets.

@kbradnam
Created May 22, 2014 17:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbradnam/62c637f011b93524f79d to your computer and use it in GitHub Desktop.
Save kbradnam/62c637f011b93524f79d to your computer and use it in GitHub Desktop.
Converting old Korflab CVS repositories to Git repositories

First install cvs2svn. This includes a cvs2git command. Then proceed to make dump files from the old repository (you must be on the korflab server machine at this point). The instructions to do this are taken from those on the cvs2svn website. Because we used one monolithic CVS repository for all projects, I used the following steps to migrate one CVS module at a time (not all CVS modules need to end up on GitHub):

For Assemblathon CVS repository

cd ~/Work/Code
mkdir cvs2git-tmp
cvs2git --blobfile=cvs2git-tmp/git-blob.dat --dumpfile=cvs2git-tmp/git-dump.dat --username=keith /Volumes/Data/cvsroot/Assemblathon/
git init Assemblathon
cd Assemblathon

# now import files
git fast-import --export-marks=../cvs2git-tmp/git-marks.dat <../cvs2git-tmp/git-blob.dat
git fast-import --import-marks=../cvs2git-tmp/git-marks.dat <../cvs2git-tmp/git-dump.dat

git branch -D TAG.FIXUP
git gc --prune=now

git checkout master

At this point I added an Assemblathon repository to GitHub and the pushed the local repository to GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment