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
将指定版本进行反做,不会影响后续提交的内容本文标题:02.Git补充操作-误删恢复
本文链接:https://www.haomeiwen.com/subject/qwgevltx.html
网友评论