DEV Community

Discussion on: 9 Evil Bash Commands Explained

pato9406 profile image
Cristian Patricio

Great article! The fork bomb is very funny.

I think you can still comeback from number 5 using git reflog, but it won't be funny :p

devmount profile image
Andreas Author

Thank you 😊

I don't think it's possible to recover uncommitted changes with git reflog. This would only help people who actually had committed something.

But I read that if lost changes are in files that were earlier added to the index (with git add) it might be possible to recover the data with git fsck --lost-found.