此时可以使用git reflog命令找到最近操作的版本号 使用git reset --hard 版本号切换到之前的版本 转载于:https://www.cnblogs.com/mrnx2004/p/11004236.html