Migrate from CVS to Git without losing history

后端 未结 8 1587
旧时难觅i
旧时难觅i 2020-12-07 16:41

I need to know if there is a way to migrate my code from CVS source control to Git?

If yes, what about my history of commits?

相关标签:
8条回答
  • 2020-12-07 17:35

    I've recently had success and a relatively pleasing experience using the "CVS Remote Access Program", or, well, crap (GitHub).

    It can apparently handle various intricacies of CVS repositories which none/not all of the other conversion tools can, but I'm not well-versed in the details. Like cvs2git, it also follows the path of dump files which are actuall imported into git using git-fast-import.

    The reason I'm suggesting it is that when I found a deficiency in it, I was able to add the capability I was missing to the existing code - and it wasn't so terrible. My PR for that is pending as are a bunch of bug reports.

    0 讨论(0)
  • 2020-12-07 17:36

    I've used recently (2016) reposurgeon of Eric Raymond to import a CVS repo from sourceforge to git. I was very pleasantly surprised and it worked very well. After past experiences with cvs2svn and other tools, I recommend without hesitation reposurgeon for this kind of tasks.

    Eric has posted a straightforward migration guide here

    0 讨论(0)
提交回复
热议问题