how to change the name of the commit github code example Example: amend last commit message $ git commit --amend -m "New and correct message"