git操作代码丢失

git操作代码丢失

  1. 执行命令
git reflog

在这里插入图片描述

  1. 执行命令
git reset --hard HEAD@{1}    //需要恢复几就写几

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_45021462/article/details/113827855
今日推荐