A simple bash script to reduce your local repos' size.
$ ./git-gc ~/Code
$ DEBUG=1 ./git-gc ~/Projects
Basically, it expires all reflogs with git reflog expire --all --expire=now
and then it does an aggressive GC with git gc --aggressive --prune=now
.
And, sure, print the results!