简体   繁体   English

使用git-cvs时,确保所有git commit都返回到CVS

[英]Ensuring all git commits make it back to CVS when using git-cvs

I'm using git-cvs, and my general workflow is something like this: 我正在使用git-cvs,我的一般工作流程是这样的:

...write some code...
$ git commit
$ git cvsexportcommit -c -p -v <asdf>
$ git cvs-import $CVSROOT
$ git pull

This generally works fine for pushing my commits back to the CVS server and keeping things in sync. 通常,这对于将我的提交推回CVS服务器并使事情保持同步非常有效。 However, I'm wondering how I will realize that something is missing if I happen to do the "git commit" but forget to export it to the CVS server. 但是,我想知道如果碰巧执行“ git commit”但忘记将其导出到CVS服务器,该怎么办?

Is there a reasonable way to get a diff between my git repository and the CVS server, so I would know that something hadn't been committed all the way through? 有没有一种合理的方法来使我的git存储库和CVS服务器之间有所区别,所以我会知道并没有完全提交某些内容? Or perhaps there's a better method of doing this altogether? 也许有一种更好的方法可以完全做到这一点?

check out this answer link 查看此答案链接

if you do your work on branches and merge them on master for commit (without fast-forward) you can reference the commit parent and it commits all changes back to cvs 如果您在分支上进行工作并在master上合并以进行提交(没有快速转发),则可以引用commit父级,它将所有更改提交回cvs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM