7v0ppw
Last Updated: February 25, 2016
·
482
· magnetikonline
Df1412e1775840374894798d5ed9a7ea

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
Say Thanks
Respond