Skip to content

Instantly share code, notes, and snippets.

@toke
Last active August 29, 2015 14:16
Show Gist options
  • Save toke/e7767e9038b90c019650 to your computer and use it in GitHub Desktop.
Save toke/e7767e9038b90c019650 to your computer and use it in GitHub Desktop.

CVS2GIT

export REPOPATH="abc/production_ng"
export REPONAME="cvsmigration"
mkdir cvs-migration
cd cvs-migration
mkdir cvs2svn-tmp

cvs2git \
    --blobfile=cvs2svn-tmp/git-blob.dat \
    --dumpfile=cvs2svn-tmp/git-dump.dat \
    --username=cvs2git \
    --encoding=iso-8859-1 \
    --fallback-encoding=utf-8 \
    ${REPOPATH}

or

cvs2git --options=OPTIONS-FILE

git init --bare "${REPONAME}.git"
cd "${REPONAME}.git"
cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import

Quellen

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