After your git reset --hard
, use to be sure the git restore
command
cd /path/to/repository
git restore -- .
That should restore (as its name implies) the working tree with what is in HEAD (and you just reset HEAD to the right commit)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…