假如commit之后,发现还有一点东西没有完善,想完善之后再重新commit,怎样取消之前的commit呢 1 之前 操作 git commit -m 't1' 2 想要提交的操作 git commit -m 't2' 1 执行操作 git rebase -i HEAD~~ 删除 不想要的 保存