使用 git-cvs 时确保所有 git 提交都返回到 CVS

发布于 2024-08-24 09:36:42 字数 351 浏览 2 评论 0原文

我正在使用 git-cvs,我的一般工作流程是这样的:

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

这通常可以很好地将我的提交推回 CVS 服务器并保持同步。但是,我想知道如果我碰巧执行“git commit”但忘记将其导出到 CVS 服务器,我将如何意识到缺少某些内容。

有没有一种合理的方法来获取我的 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 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

緦唸λ蓇 2024-08-31 09:36:42

查看这个答案链接< /a>

如果你在分支上工作并将它们合并到 master 上进行提交(没有快进),你可以引用提交父级并将所有更改提交回 cvs

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文