Recover from git reset --hard?

后端 未结 22 2809
盖世英雄少女心
盖世英雄少女心 2020-11-22 00:52

Is there any way to recover uncommitted changes to the working directory from a git reset --hard HEAD?

22条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 01:53

    If you had a IDE open with the same code, try doing a ctrl+z on each individual file that you have made changes to. It helped me recover my uncommited changes after doing git reset --hard.

提交回复
热议问题