git gc

Otimiza o repositório local limpando os arquivos desnecessários. Mais informações: https://git-scm.com/docs/git-gc.

git gc

git gc --aggressive

git gc --no-prune

git gc --quiet

git gc --help