Optimize the local repository by cleaning unnecessary files.
# To optimize the repository:
git gc
# To aggressively optimize, takes more time:
git gc --aggressive
# To do not prune loose objects (prunes by default):
git gc --no-prune
# To suppress all output:
git gc --quiet
# To view full usage:
git gc --help