change typo in git commit code example
Example 1: change message from last pushed commit
git commit --amend
Example 2: change commit message
git commit --amend
// press enter, editor would open
git commit --amend
git commit --amend
// press enter, editor would open