modify a commit message code example
Example 1: change commit message
git commit --amend
// press enter, editor would open
Example 2: git amend commit message
git commit --amend -m "New commit message for most recent commit"
git commit --amend
// press enter, editor would open
git commit --amend -m "New commit message for most recent commit"