Last Updated: February 25, 2016
·
619
· magnetikonline

Git garbage collect all your dev tree

In the interests of house keeping (and saving a few bytes of diskspace), cobbled this shell script together to crawl over your development directory, hunt out all your Git repositories and garbage collect them.

See here:
https://gist.github.com/4064851

Or something like:

$ wget https://raw.github.com/gist/4064851/19b73c66c885fd0c400b62832c0619a071b7e592/gitgarbagecollectall.sh
$ chmod u+x gitgarbagecollectall.sh
$ ./gitgarbagecollectall.sh /your/development/root