- To move a repo from CVS to Git (in Linux), one may follow these steps:
-
- Create the repo in Git, say https://github.com/w3c/onespec;
- Install cvsps, as easy as running:
apt-get install cvsps
; - Install git-cvs:
apt-get install git-cvs
; -
Come back to a local directory, e.x. /tmp/.
cd /tmp/
git cvsimport -v -a -i -k -C onespec.git <target-cvs-module>
. (This step might take a long time ...)cd onespec.git
git checkout .
git reset --hard
git prune
git remote add origin https://github.com/w3c/onespec
git push origin --mirror
- After this, you may want to push the files into gh-pages. Try:
-
git checkout -b gh-pages
git push origin gh-pages
- delete the
master
andorigin
branches