Created
May 19, 2017 01:48
-
-
Save jmz-b/99d2766856cbbe2627d666826f31071b to your computer and use it in GitHub Desktop.
Recursivly list all git(1) repositories incl. their sizes under the
This file contains 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
#!/bin/sh | |
# Recursivly list all git(1) repositories incl. their sizes under the | |
# given directory in parallel | |
find "${1}" -type d -name .git -print \ | |
| sed -e s,/.git$,, \ | |
| xargs -r \ | |
du -sh \ | |
| sort -k2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment