Updating Commit Message in Mercurial MQ extension

泄露秘密 提交于 2019-12-05 05:34:52

You just do hg qrefresh -m "new commit message".

In addition to

$ hg qrefresh -m "new message"

suggested by kuy, you can also use

$ hg qrefresh -e

to edit the current message. I find that very handy since I often have multi-line commit messages that I need to revise many times over the lifetime of a patch. Infact, I always create my patches with no commit message — just hg qnew foo — and then edit the commit message as I go along.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!