Mercurial: how to amend the last commit?

I’m looking for a counter-part of git commit –amend in Mercurial, i.e. a way to modify the commit which my working copy is linked to. I’m only interested in the last commit, not an arbitrary earlier commit. The requirements for this amend-procedure are: if possible, it should not require any extensions. It must not require … Read more

How to edit incorrect commit message in Mercurial? [duplicate]

This question already has answers here: Mercurial: how to amend the last commit? (8 answers) Closed 4 years ago. I am currently using TortoiseHg (Mercurial) and accidentally committed an incorrect commit message. How do I go about editing this commit message in the repository? 12 Answers 12