Created
November 22, 2020 04:15
-
-
Save watbulb/0b3ba96d722c619855315c488327134a to your computer and use it in GitHub Desktop.
recovering uncommitted changes from a git reset --hard (godbless)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for blob in $(git fsck --lost-found | cut -d' ' -f3); do | |
git cat-file -p $blob > $blob.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment