If you have suddenly noticed that the last commit message is unclear or contains some incorrect information – don’t worry, as the most resent commit message can be easily changed if you haven’t yet pushed the commit to a remote server
To edit the last commit message you have to repeat the git commit command with the --amend option.
The most recent commit message can be changed in a text editor or simply through the command-line interface. (more…)