Local history can't revert git reset --hard files.
Answered
I used incorrectly File->Git->reset (select Hard) to reset my workspace, I had already committed the changes before I did that. Because it is my first commit, all of my files were deleted, and then I used "local history" to recover my workspace, it retrieved my file directories and files, but the code in the file was disappeared, the .py and .c files are blank, I want to know what causes this result, has anyone else been in this situation?
Please sign in to leave a comment.
Hello
>I want to know what causes this result, has anyone else been in this situation?
It depends which commit was your "Target' one. If you reset to a commit that had empty files then it explains why you have faced such issue