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):
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.