set the commit message directly in the command line with: [1]
git commit --amend -m "New commit message"
:exclamation: Notice -- Make sure you don't have any working copy changes staged before doing this or they will get committed too. (Unstaged changes will not get committed.)
Without Pushing
Last Commit
set the commit message directly in the command line with: [1]
:exclamation: Notice -- Make sure you
don't have any working copy changes staged
before doing this or they will get committed too. (Unstaged changes will not get committed.)Reference
[1] https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commit-messages