我可以在Mercurial中压击犯规吗? [英] Can I squash commits in Mercurial?

查看:56
本文介绍了我可以在Mercurial中压击犯规吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一对提交,实际上应该只是一个.如果我使用的是git,则可以使用:

I have a pair of commits that should really be just one. If I was using git, I would use:

git rebase -i <some-commit-before>

然后压扁它们.

我可以这样做吗?如果可以,怎么办?

Can I do that in mercurial? If so, how?

推荐答案

是的,您可以通过串联变更集.

或者,如果您想使用扩展名,可以使用:

Alternately if you want to use an extension you could use:

  • The Collapse Extension
  • The Rebase Extension or
  • The Histedit Extension

这篇关于我可以在Mercurial中压击犯规吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆