fix typo in git commit message please code example
Example 1: change message from last pushed commit
git commit --amend
Example 2: fix typo in commit message
git commit --amend -m "New commit message"
git commit --amend
git commit --amend -m "New commit message"