Skip to content

Instantly share code, notes, and snippets.

@fosemberg
Created April 1, 2020 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fosemberg/6418787a2f28eca4c28239e721899fab to your computer and use it in GitHub Desktop.
Save fosemberg/6418787a2f28eca4c28239e721899fab to your computer and use it in GitHub Desktop.
git fsck --full --no-reflogs --unreachable --lost-found | grep blob | cut -d\ -f3 | while read in; do printf "blob: $in\n"; git cat-file -p $in; printf "\n--------------------------------\n"; done > recover.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment