24.5.2013

how to speed up your git repository

Filed under: Uncategorized — nax @ 09:14

Thanks to my colleague Istvan I have learnt another interesting function of git today. Quote from his email:

“Git stores its repository compressed, but incremental updates (commits) are compressed incrementally too. The whole repo can be recompressed alltogether, making it much smaller, so it can be accessed faster.”

Magical command follows:
git gc --aggressive

It can reduce size of your local git repository almost twice.

Comments are closed.

Powered by WordPress