1)git commit 合并两次commit提交 git commit --amend -m "commit comments" 2)git revert 回滚到上一个commit git revert HEAD