how to fix typo in git commit message github code example Example: git amend commit message git commit --amend -m "New commit message for most recent commit"