先显示提交的记录:
git log
commit e499aac9257354c54ac2e1ff6a393ac7c8d2f342
Author: xx <xxx@xx.com>
......
回到指定版本:
git reset --hard e499aac9257354c54ac2e1ff6a393ac7c8d2f342
强制提交:
git push -f origin master
参考网址:
https://www.cnblogs.com/wancy86/p/5848024.html
膜拜大佬~~