unstaged files gone after git reset --hard

前端 未结 7 1008
清酒与你
清酒与你 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.

    0 讨论(0)
提交回复
热议问题