unstaged files gone after git reset --hard

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

    If anyone made the same blunder like me git reset --hard before adding unstaged files then there are still chances to get those changes back. Although these files are not available in repo anymore but some of the new IDEs maintain their own history. Like in my case I was able to retrieve my unstaged changes from Android Studio's local history feature which is located under VCS.

    Directions:

提交回复
热议问题