Skip to content

Instantly share code, notes, and snippets.

@larsxschneider
Created January 17, 2018 16:09
Print directory sizes in a Git repo
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