git commit --amend -m "an updated commit message" code example
Example: git amend commit message
git commit --amend -m "New commit message for most recent commit"
git commit --amend -m "New commit message for most recent commit"