tldr/pages/common/git-gc.md
Vitor Henrique 46a054215a
pages*: make help and version commands comply with the style guide (#12107)
* pages*: use generic word for help

* git: add newline to the end

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* pages*: make help and version commands comply with the style guide

* java: fix Java name

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-30 12:55:24 +08:00

380 B

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

  • Display help:

git gc --help