get last commit message code example
Example 1: how do i get the last commit
$ git reset --soft HEAD~1
Example 2: how to fix the last commit message
git commit --amend -m "New commit message."
$ git reset --soft HEAD~1
git commit --amend -m "New commit message."