Created
January 17, 2018 16:09
-
-
Save larsxschneider/ea146e69b23387a04ddd3f4f53c0b2ab to your computer and use it in GitHub Desktop.
Print directory sizes in a Git repo
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
find . -type d -not -path './.git/*' -print0 | while IFS= read -r -d '' i ; do echo "$(ls -l "$i" | wc -l) $i"; done | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment