Recovering added/staged file after doing git reset --hard HEAD^?

后端 未结 5 1834
难免孤独
难免孤独 2020-11-22 10:03

I added a new file F1 and made changes to another file F2 but then did a "git reset --hard HEAD^" and I have lost all the changes to the files.

Is there

5条回答
  •  -上瘾入骨i
    2020-11-22 10:39

    Try this http://gitready.com/advanced/2009/01/17/restoring-lost-commits.html

    I got a heart attack for the changes I lost. But after following this post. I got my changes back

提交回复
热议问题