use git to change log message on committed file code example Example: amend last commit message $ git commit --amend -m "New and correct message"