恢复到版本并销毁之后的git提交记录

git reset --hard HEAD~1(或者你想要的版本号)
git push --force   # 千万注意:此操作无法恢复
原文地址:https://www.cnblogs.com/timelyxyz/p/3480846.html