9 years, 7 months ago.

Can I revise a commit message?

I published a program but I wrote a mistake in commit message. Would you tell me how to revise the commit message? Thanks in advance.

1 Answer

9 years, 7 months ago.

Hi,

you can use offline access to clone your repo, then

hg commit --ammend

command should fix it, be aware, changing history to already published code is not recommended :-) Although this command seems to be "safe" with mercurial (not like wit git)

How to access ? Check the left sidebar where is the command to clone your repository.

Regards,
0xc0170

Accepted Answer

Hi Martin, Thank you for your answer. "amend" option cannot be used in the case of public change sets. However, as I can know mbed uses Mercurial, I will try some ways after learning it :) Kind regards,

posted by Tetsuro Tatsuoka 15 Sep 2014