Erik’s Brain

The reward of a thing well done...

Git Compression

My local copy of the Git repo I use for a project was starting to feel a little bit slow. Now, keep in mind, this is a big, old repo that around twenty different people make dozens of commits to each day. I hadn’t done any maintenance on it since I first cloned it to my computer back in August.

Before and After

Take a look at the difference in “size on disk” and the number of items. git gc --aggressive is no joke!

Related: Compressing Git Repository

Comments