how to edit a previously committed change in github code example Example: git amend last commit message $ git commit --amend -m "New and correct message"