1) 查看历史记录
git reflog
2)回退版本
git reset --hard HEAD@{n}
git版本回退
原文:https://www.cnblogs.com/lwcode6/p/11084499.html