convert/import CVS repo into GIT repo

Importing from CVS into Git

To setup a new Git repository imported from CVS, make sure you have a $CVSROOT parameter initialized in your session :


and run the following command:

$ git cvsimport -v -d $CVSROOT -C git-dir-to-create -r cvs cvs-module-to-checkout

Note: cvsimport uses the cvs command. If you do not have cvs installed, the import will not be successful. (you can try to use the -k option : see manual page)

You can use this from linux, or windows (from cygwin).

Some other sources: here and here and here


Esnault Jerome. Ingenieur software/middleware dans le secteur de la 2D/3D interactive... en savoir plus...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>