Does Mercurial support empty commit messages?

冷暖自知 提交于 2019-11-30 08:18:08

You can use just a space, but I'd really discourage it:

hg commit -m " "

If the problem is that you don't want to enter the -m "blah" part you can always set up an alias. e.g. in hgrc

[alias]
qcommit = commit -m "quick commit - no message"

If you don't like qcommit then you can alias to commit instead i.e.

[alias]
commit = commit -m "quick commit - no message"

this won't help you with TortoiseHG however which presumebly validates its entry fields before passing data to mercurial iteslf

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