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