开发者

How to run Git and CVS over the same folder [duplicate]

开发者 https://www.devze.com 2023-03-10 09:48 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: How to export revision history from mercurial or git to cvs?
This question already has answers here: Closed 11 years ago.

Possible Duplicates:

How to export revision history from mercurial or git to cvs?

Best practices for using git with CVS

I have to make a number of changes to a CVS project. These changes cannot be c开发者_开发技巧hecked in for some time and it's infeasible to create a branch either.

It occurs to me that I could track changes by creating a git project over the top of my CVS snapshot. I can commit my changes to git as I go along and at the end, trivially produce a patch from which I can make a checkin or handoff to someone else.

Is this feasible to do? The biggest issue for me is that I want git to ignore the CVS/ folders and also the bin/ folders where binaries are created. Is this possible to do in some simple fashion.


It's completely possible, just go ahead and create a git repository in the directory, adding the exclusions to .gitignore. As you're just using it as a scratch repo, you don't even need to run an import.

0

精彩评论

暂无评论...
验证码 换一张
取 消