git gc

Optimise the local repository by cleaning unnecessary files. More information: https://git-scm.com/docs/git-gc.

git gc

git gc --aggressive

git gc --no-prune

git gc --quiet

git gc --help