Is it possible to edit a summary after a commit using TortoiseHg?

前端 未结 7 1579
清酒与你
清酒与你 2021-01-04 01:30

Occasionally I commit some code to the repository, add a comment/summary, then read the summary back and realise I\'ve made a mistake or should have included a bit more info

7条回答
  •  孤城傲影
    2021-01-04 02:15

    hg 2.2 just added the git-like --amend option. (See the hg 2.2 release notes.)

    So you can do this on the command line:

    hg commit --amend
    

    See also Mercurial: how to amend the last commit?

    I have not figured out how to do this in TortoiseHg.

提交回复
热议问题