撤销上一次commit git reset --soft HEAD^ 撤销上上一次commit git reset --soft HEAD^^ 回滚到指定版本 //查看提交日志ID git log //回滚到指定提交版本 git reset --hard ID