Created
August 2, 2021 08:45
-
-
Save JanGorman/1aa702e1865357b13e143e0ac767f760 to your computer and use it in GitHub Desktop.
Find that big branch
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
git for-each-ref --format='%(refname)' | | |
while read branch | |
do | |
size=$(git rev-list --disk-usage --objects HEAD..$branch) | |
echo "$size $branch" | |
done | | |
sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment