git 提交本地仓库 提交错误撤销命令

git reset --hard HEAD~1
原文地址:https://www.cnblogs.com/pengchenggang/p/13690361.html