VS Code Git clean recovery

I accidentally hit the Git clean command in Visual Studio code and I lost all my files. Is there a way to recover my files? I tried to find files with recovery programs, but no results.

+6
source share
2 answers

Unfortunately, no, these files have disappeared. AFIK Git does not back up.

According to the source code of a clean command, it executes unlink when you click this command.

+3
source

This answer here ( fooobar.com/questions/972013 / ... ) suggests that running git fsck --lost-found may recover some files.

0
source

All Articles