3 echo "Will run git gc on all repos in this directory in 10 sec."
6 echo "------OLD------" > /tmp/ggcAll.txt
7 find . -path '*.git' -type d -print0 | du -sch --files0-from=- >> /tmp/ggcAll.txt
8 echo "------NEW------" >> /tmp/ggcAll.txt
9 find . -path '*.git/config' -type f -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git gc \;
10 find . -path '*.git' -type d -print0 | du -sch --files0-from=- >> /tmp/ggcAll.txt
11 echo "-----STATS-----"