0

I have executed a command. git clean -fX (which removes ignore files)

I want to restore them, please let me know how to restore removed files.

  • 1
    Possible duplicate of [Can I undo a \`git clean -fdx\`?](http://stackoverflow.com/questions/6267180/can-i-undo-a-git-clean-fdx) – Andrew C Nov 06 '15 at 06:37

1 Answers1

0

If those ignored files were never previously added to the index (but only private, local to your repo), then there is no "git way" to get them back.

You would have to use some disk file analysis program to try and restore them.
Also, if you are using an IE like Eclipse, check if its local history might still have a trace of those files (for you to restore).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250