I accidentally hit Git clean command in Visual Studio code, and I lost all my files. Is there any way to recover my files? Tried to find files with recovery programs, but no results.
Asked
Active
Viewed 4,278 times
7
-
See also http://stackoverflow.com/questions/24671650/does-git-clean-support-moving-to-recycle-bin – Matthew Strawbridge Aug 02 '15 at 22:00
2 Answers
3
Unfortunately, no, those files are gone. AFIK Git doesn't create any backup copyies.
According to the source code of the clean command it executes unlink
when you hit this command.

neshkeev
- 6,280
- 3
- 26
- 47
0
This answer here (https://stackoverflow.com/a/24673982/2441655) suggests that running git fsck --lost-found
may recover some files.