Can I Restore Deleted Files (undo A `git Clean -fdx`)?


Answer :

No. Those files are gone.

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


git clean -fdxn 

Will do a dry run, and show you what files would be deleted if you ran

git clean -fdx 

(of course this is only helpful if you know this ahead of time, but for next time)


IntelliJ/Android Studio allows restoring files from local history.


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable