how to see last commit message in git code example Example: how to fix the last commit message git commit --amend -m "New commit message."