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

Ron*_*rby 3 version-control mercurial

如果你在mercurial中提交:

hg commit -m "an incomplete description of the commit"
Run Code Online (Sandbox Code Playgroud)

你有什么选择来纠正提交描述?我是否应该立即再次提交完整的描述?

编辑

实际上,如果没有改变的话,你就无法提交.

Mat*_*hen 5

使用

hg rollback
Run Code Online (Sandbox Code Playgroud)

它彻底解除了最后一次提交.然后,您可以使用正确的消息重新发送.