unstaged files gone after git reset --hard

前端 未结 7 1126
清酒与你
清酒与你 2020-12-03 14:31

I tried the git reset --hard HEAD@{n} from git reflog and I lost everything with my current unstaged files :\'(

the unstaged files is the l

7条回答
  •  遥遥无期
    2020-12-03 15:27

    Low tech tip which might be useful for some. If the unstaged/uncommited files that you lost, where open in your editor. Try doing undo on that file and you should get "previous versions" of the file from the editors history stack.

提交回复
热议问题