DEV Community

Discussion on: 9 Evil Bash Commands Explained

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.