Skip to content

Instantly share code, notes, and snippets.

@ricardobeat
Created April 10, 2017 14:47
Show Gist options
  • Save ricardobeat/1ace67963fd9a217450a0b43bc79b004 to your computer and use it in GitHub Desktop.
Save ricardobeat/1ace67963fd9a217450a0b43bc79b004 to your computer and use it in GitHub Desktop.
Git: digging for lost code - unlabeled stashes etc
git fsck --no-reflogs | awk '/dangling commit/ {print $3}'| while read hash; do
echo "$hash"
git show $hash | grep -H -C4 svg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment