System Grab Bag

View all TLDR pages from common (or from all pages)

git gc

Optimise the local repository by cleaning unnecessary files. More information: https://git-scm.com/docs/git-gc.
  • Optimise the repository:
    git gc
  • Aggressively optimise, takes more time:
    git gc --aggressive
  • Do not prune loose objects (prunes by default):
    git gc --no-prune
  • Suppress all output:
    git gc --quiet
  • View full usage:
    git gc --help

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.