From dfc85c2d0dae00f55981bd8245f467e97a917666 Mon Sep 17 00:00:00 2001
From: mhagger The command-line options for running cvs2git are documented
in the cvs2git man page and in the output of cvs2git
- --help.
-
+cvs2git \ + --blobfile=cvs2svn-tmp/git-blob.dat \ + --dumpfile=cvs2svn-tmp/git-dump.dat \ + --username=cvs2git \ + /path/to/cvs/repo ++ +
Run cvs2git. This creates two output files in This creates two output files in git fast-import format. The names of these files are specified by your options file or command-line arguments. In the example, @@ -331,20 +339,30 @@ cvs2git --options=OPTIONS-FILE
Initialize a git repository, and load the dump files using - git fast-import:
+Initialize a git repository:
+mkdir myproject.git +cd myproject.git git init -git fast-import --export-marks=cvs2svn-tmp/git-marks.dat < cvs2svn-tmp/git-blob.dat -git fast-import --import-marks=cvs2svn-tmp/git-marks.dat < cvs2svn-tmp/git-dump.dat ++ +
Load the dump files into the new git repository using git + fast-import:
+ ++git fast-import --export-marks=../cvs2svn-tmp/git-marks.dat < ../cvs2svn-tmp/git-blob.dat +git fast-import --import-marks=../cvs2svn-tmp/git-marks.dat < ../cvs2svn-tmp/git-dump.dat
This can, of course, be shortened to:
-git init -cat cvs2svn-tmp/git-blob.dat cvs2svn-tmp/git-dump.dat | git fast-import +cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | git fast-import
(Optional) View the results of the conversion, for example:
+ ++gitk --all ++ +
Check out the master branch into the working copy:
+ ++git checkout master ++ +
Feedback would be much appreciated, including reports of success -- 2.11.4.GIT