version-control - 忘记在 mercurial 提交描述中包含信息

标签 version-control mercurial

如果您在 mercurial 中进行提交:

hg commit -m "an incomplete description of the commit"

您有哪些选项可以更正提交描述? 我是否应该立即再次提交完整的描述?

编辑

实际上,您不能在没有更改的情况下提交。

最佳答案

使用

hg rollback

它完全撤消了最后一次提交。然后您可以使用适当的消息重新提交。

关于version-control - 忘记在 mercurial 提交描述中包含信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3024786/

相关文章:

mercurial - Mercurial 中的神秘分支

powershell - 为什么 Mercurial 忽略我在 Powershell 中提供的 repo 路径?

mercurial - 使用 Mercurial 来维护程序的两个版本——克隆还是命名分支?

svn - 颠覆后的空存储库 -> mercurial 转换

svn - mercurial repo 中的文件夹结构?

git - 如何管理一个项目的多个版本?

git - 如何为特定提交获取 "git log"补丁

eclipse - 使用 Eclipse 时,我应该将工作区添加到源代码管理中吗?

git - gitignore 全局配置到底有什么作用?

git - IDE 中的 Smart Checkout Intellij IDEA 的工具版本控制有什么作用?