git-gc: add page (#1741)

This commit is contained in:
Starbeamrainbowlabs
2017-12-04 14:44:48 +00:00
committed by GitHub

23
pages/common/git-gc.md Normal file
View File

@@ -0,0 +1,23 @@
# git gc
> Optimise the local repository by cleaning unnecessary files.
- 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`