how ro display last 3 commit messages in my local branch code example Example: git amend last commit message $ git commit --amend -m "New and correct message"