如何在同一文件夹上运行 Git 和 CVS
可能的重复:
如何将修订历史记录从 Mercurial 或 git 导出到简历?
将 git 与 CVS 结合使用的最佳实践
我必须做一些对 CVS 项目的更改。这些更改在一段时间内无法签入,并且创建分支也不可行。
我突然想到,我可以通过在 CVS 快照之上创建一个 git 项目来跟踪更改。我可以一边进行一边将更改提交到 git,最后生成一个补丁,我可以通过该补丁进行签入或移交给其他人。
这可行吗?对我来说最大的问题是我希望 git 忽略 CVS/ 文件夹以及创建二进制文件的 bin/ 文件夹。这可以通过一些简单的方式做到吗?
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 checked 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是完全可能的,只需继续在目录中创建一个 git 存储库,并将排除项添加到
.gitignore
中即可。由于您只是将其用作临时存储库,因此您甚至不需要运行导入。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.