unstaged files gone after git reset --hard

前端 未结 7 1127
清酒与你
清酒与你 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:24

    if anyone searching for a solution using Pycharm IDE,

    • find folder for deleted file,
    • with right click select , "Show History",
    • In left panel you will see history of changes in that folder.

    Then find file you deleted, right click to it and select "revert", then deleted files will appear in folder.

提交回复
热议问题