rename commit message in linux code example Example: rename commit message in linux git commit --amend -m "New commit message."