Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Created April 27, 2015 09:05
Show Gist options
  • Save binarytemple/a707114df7067c1c81ab to your computer and use it in GitHub Desktop.
Save binarytemple/a707114df7067c1c81ab to your computer and use it in GitHub Desktop.
import a sourceforge project (with full history) to github

In order to clone the TVN application from sourceforge to github I performed the following steps.

rsync -av rsync://tnv.cvs.sourceforge.net/cvsroot/tnv/* .
svn export --username=guest http://cvs2svn.tigris.org/svn/cvs2svn/trunk cvs2svn-trunk
cp ./cvs2svn-trunk/cvs2git-example.options ./cvs2git.options
vim cvs2git.options
cvs2svn-trunk/cvs2git --options=cvs2git.options --fallback-encoding utf-8
[email protected]:binarytemple/tnv.git tnv-github
git clone [email protected]:binarytemple/tnv.git tnv-github
cd tnv-github
cat ../cvs2git-tmp/git-{blob,dump}.dat | git fast-import
git log
git reset --hard
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment