Git操作reset --hard失误

此时可以使用git reflog命令找到最近操作的版本号
使用git reset --hard 版本号切换到之前的版本

原文地址:https://www.cnblogs.com/mrnx2004/p/11004236.html