开发者

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:

...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. However, I'm wondering how I开发者_StackOverflow中文版 will realize that something is missing if I happen to do the "git commit" but forget to export it to the CVS server.

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? 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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜