1) git reset --hard找回代码
https://jingyan.baidu.com/article/1612d5005f7f87e20e1eeec1.html
git reflog 找到误删的记录,最前方的就是对应的id
git reset --hard <误删id>
git reset --hard找回代码https://jingyan.baidu.com/article/1612d5005f7f87e20e1eeec1.html
git reflog 找到误删的记录,最前方的就是对应的id
git reset --hard <误删id>
git reset回退版本,HEAD指向回退; git revert将指定版本进行反做,不会影响后续提交的内容