Changing a commit message - GitHub Docs
If the commit only exists in your local repository and has not been pushed to GitHub.com, you can amend the commit message with the git commit --amend
command.
Use the git rebase -i HEAD~n
command to display a list of the last n
commits in your default text editor.
# Displays a list of the last 3 commits on the current branch
$ git rebase -i HEAD~3
# p, pick = use commit
# r, reword = use commit, but edit the commit message
git push -f
이미 작성한 커밋을 drop으로 삭제한 뒤에 git pull 하면 안 되고, git push -f 해야 한다.