[to amend last commit message]

git commit --amend -m <edited-message>

 

[to amend last commit e.g. add more modifications, edit, re-stage and commit amend]

git add <edited-file>

git commit --amend -m <edited-message>