Skip to content

Instantly share code, notes, and snippets.

@jxmorris12
Created October 4, 2019 19:58
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 jxmorris12/44289e0b89935c488ca44eb39825ee76 to your computer and use it in GitHub Desktop.
Save jxmorris12/44289e0b89935c488ca44eb39825ee76 to your computer and use it in GitHub Desktop.
print large stuff in your git repo
git rev-list --all --objects | \
sed -n $(git rev-list --objects --all | \
cut -f1 -d' ' | \
git cat-file --batch-check | \
grep blob | \
sort -n -k 3 | \
tail -n40 | \
while read hash type size; do
echo -n "-e s/$hash/$size/p ";
done) | \
sort -n -k1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment