Can I restore deleted files (undo a `git clean -fdx`)?

Eric picture Eric · Jun 7, 2011 · Viewed 92.6k times · Source

I was following the instructions on making github pages, and forgot to move down into my git sub directory. As a result, I just nuked an entire directory of documents with git clean -fdx.
Is there any way I can undo this terrible mistake?

Answer

Mat picture Mat · Jun 7, 2011

No. Those files are gone.

(Just checked on Linux: git clean calls unlink(), and does not backup up anything beforehand.)