Optimize the local repository

Angelos Chalaris · Git, Repository · Apr 13, 2021

Optimizes the local repository.

  • Use git gc --prune=now --aggressive to garbage collect loose objects.
git gc --prune=now --aggressive
git gc --prune=now --aggressive # Optimizes the local repository

Recommended snippets