How do I customize the 'commit message file' generated by `hg commit`?

后端 未结 6 556
星月不相逢
星月不相逢 2021-01-17 22:14

When I run hg commit, Mercurial generates a file for my commit message that looks like this :

HG: Enter commit message.  Lines beginning with \'         


        
6条回答
  •  不知归路
    2021-01-17 22:40

    Use hg commit -m "My message here". You can also set up an editor in your Mercurial.ini or ~/.hgrc file. Add the following:

    [ui]
    editor = /path/to/your/favorite/editor
    

提交回复
热议问题