git ammend last commit name code example Example: ammend last commit git commit --amend # if you want to add a new message git commit --amend -m