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.
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.
unlink
This answer here ( fooobar.com/questions/972013 / ... ) suggests that running git fsck --lost-found may recover some files.
git fsck --lost-found