git commit --amend
git commit --amend -m "an updated commit message"
$ (some_branch) git commit --amend
# Displays a list of the last commits # Just replace a name with another one and save and close the file git rebase -i HEAD~3