how to edit commit message on 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