1) git reset --hard
找回代碼
https://jingyan.baidu.com/article/1612d5005f7f87e20e1eeec1.html
git reflog
找到誤刪的記錄茫孔,最前方的就是對應(yīng)的id
git reset --hard <誤刪id>
git reset --hard
找回代碼https://jingyan.baidu.com/article/1612d5005f7f87e20e1eeec1.html
git reflog
找到誤刪的記錄茫孔,最前方的就是對應(yīng)的id
git reset --hard <誤刪id>
git reset
回退版本扛芽,HEAD指向回退偶垮; git revert
將指定版本進(jìn)行反做堰氓,不會影響后續(xù)提交的內(nèi)容