how to rename commit message git code example Example: change commit message git commit --amend // press enter, editor would open