how to edit your last commit message code example Example: amend last commit message $ git commit --amend -m "New and correct message"