how to edit a past commit message github code example
Example: how to edit old commit message in git
# Displays a list of the last 3 commits on the current branch
$ git rebase -i HEAD~3
# Displays a list of the last 3 commits on the current branch
$ git rebase -i HEAD~3