$ git commit --amend -m "New and correct message"
git commit --amend -m "New commit message" Then git push --force and you're done
# 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