Created
November 21, 2019 11:52
-
-
Save guysmoilov/714c2e6ad340f9313f8a6877d9505873 to your computer and use it in GitHub Desktop.
List git object sizes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-list --objects --all \ | |
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \ | |
| sed -n 's/^blob //p' \ | |
| sort -nrk2 \ | |
| cut -c 1-12,41- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment