Skip to content

Instantly share code, notes, and snippets.

@dgageot
Created April 22, 2010 16:14
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 dgageot/375432 to your computer and use it in GitHub Desktop.
Save dgageot/375432 to your computer and use it in GitHub Desktop.
git fsck | awk '/dangling commit/ {print $3}' | git show --format='SHA1: %C(yellow)%h%Creset %f' --stdin | awk '/SHA1/ {sub("SHA1: ", ""); print}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment