Skip to content

Instantly share code, notes, and snippets.

@yarjor
Created May 19, 2018 12:59
Show Gist options
  • Select an option

  • Save yarjor/2414665a10ee4395c56be57ff49486a4 to your computer and use it in GitHub Desktop.

Select an option

Save yarjor/2414665a10ee4395c56be57ff49486a4 to your computer and use it in GitHub Desktop.
[Print all git objects] #git
find .git/objects/ -type f | cut -c14-15,17-20 | xargs -I {} sh -c "echo '\nFor {}:'; git cat-file -p {}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment