git gc

Optimiza el repositorio local eliminando archivos innecesarios. Más información: https://git-scm.com/docs/git-gc.

git gc

git gc --aggressive

git gc --no-prune

git gc --quiet

git gc --help