tags:

views:

1124

answers:

6

I intend to switch over from CVS to Git. In the case of SVN, there seems to be cvs2svn. Is there a similar tool to easily migrate from CVS to Git?

+4  A: 

cvs2svn has a cvs2git mode.

bdonlan
+1  A: 

I've not tried this myself, but friends have reported good success converting first from CVS to SVN, and then from SVN to Git. It seems that the tools to do those respective transitions have been more thoroughly shaken out than a direct CVS to Git transition.

Dave W. Smith
+3  A: 

An alternative might be to use git cvsimport *

Magnus Skog
git cvsimport is broken and will silently give incorrect results on all but the most trivial CVS repositories. For example, see the "ISSUES" section in its documentation (http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html), or run its unit tests.
mhagger
+4  A: 

The only tool that has incremental import seems to be git-cvsimport. If you want to convert (migrate) from CVS to Git, the best solution for now seems to be mentioned above cvs2git mode of cvs2svn.

See also Interfaces Frontends And Tools page on Git wiki, section about interaction with other revision control systems.

Jakub Narębski
+1  A: 

You can add fromcvs to the list. It converts well and is extremely fast and also incremental. It does not do sticky tags, only branches, however.

robinr
A: 

Hi,

I want to go the other way, convert a GIT repository to CVS. Seems like there is alot of stuff going CVS->GIT but not so much GIT->CVS. Any idea where to start?

Danny
This is an unrelated question and doesn't belong here.
mhagger