how to force edit a comment on git code example Example: edit last commit message git commit --amend -m "New commit message."