git amend commit message after push delete to rename code example Example: amend last commit message $ git commit --amend -m "New and correct message"