Extracting a Git repository out of CVS

爱⌒轻易说出口 提交于 2019-12-13 05:15:30

问题


I am using cvs2git which is a part of cvs2svn to convert my CVS repository to a Git repository.

I ran the command the following command,

python cvs2git --dumpfile=C:\git\project\git-dump.bin --blob=C:\git\project\git-blob.bin --username=cvs2git C:\cvsroot\project

the software did some processing and generated a dump and a blob file. What would I do with these files to extract a Git repository on which I can run the git clone <url> command?


回答1:


I had to run the following command.

cat git-dump.bin git-blob.bin | git fast-import


来源:https://stackoverflow.com/questions/23201786/extracting-a-git-repository-out-of-cvs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!