I mistakenly did a TortoiseHG commit while trying to do a new line, and wrote the totally wrong thing in the commit message. How can I change the commit message here ?
I have not yet pushed the commit.
I mistakenly did a TortoiseHG commit while trying to do a new line, and wrote the totally wrong thing in the commit message. How can I change the commit message here ?
I have not yet pushed the commit.
Select "Amend current revision" from dropdown menu of commit button (marked on screenshot). Button title will become "Amend". Enter new commit message and click amend button.
--amend
option and corrected commit messagehg add adding file.txt
hg commit -m "Init"
hg commit -m "Initial commit" --amend saved backup bundle to 719f9ea026f3-amend-backup.hg
hg log
changeset: 0:355197b0c857
...
summary: Initial commit
© 2022 - 2024 — McMap. All rights reserved.
--pushafter=
option (automatically push after a commit) less attractive. – Bledsoe