修改历史上的 commit message
- 要修改的 commit hash code 假设为 A
- git rebase -i A~1
- 会出现一个编辑界面,在需要修改的 commit 的 hash 前面把
pick改为edit git commit --amend修改 messagegit rebase --continuegit push -f
pick 改为 editgit commit --amend 修改 messagegit rebase --continuegit push -f