https://www.cnblogs.com/JentZhang/p/14536139.html
https://www.jianshu.com/p/a9f327da3562
``
git reset --soft commitID //只删除commitID之后的提交记录log,代码的改动还在。
git reset --hard commitID //彻底删除commitID之后所做的改动,代码也一起回退回来了。 (慎重用,用前最好备份一下代码,或者用git diff 生成一个patch)
``