git reset --soft HEAD~1

如果进行两次的commit,想要都撤回,可以使用HEAD~2