Type git commit --amend
and press then Enter
key.
This will open a text editor to edit the commit message.
After your done, save the file and commit the changes.
Note: Changing the commit message will change the commit ID as well as the commit message is part of the commit itself.
This post is also available in: Greek