Solution:
http://www.howtoforge.com/data_recovery_from_accidently_deleted_files_or_crashed_drives_in_ubuntu
and then use search monkey to find the files
Question
I didn't realize this would delete everything:
git clean -d -f -x
How do I recover the lost files after the command above?
edit:
my setup is virtualbox with ubutu as a virtual machine. I've deleted everything outside of the repo from my home directory :(((
Solution 4
Solution:
http://www.howtoforge.com/data_recovery_from_accidently_deleted_files_or_crashed_drives_in_ubuntu
and then use search monkey to find the files
OTHER TIPS
Invoking git clean
removes all files that are not controlled by git - meaning they were not committed before.
Therefore they were not stored in repository at all, and cannot be recovered.
It doesn't delete everything; it only delete untracked files (the ones that aren't in the repository).
git
can't possibly restore files that aren't in the repository.
There is no recovering files after using git clean
in your repository.