git-gc: add page

coverage
pxgamer 2017-12-03 14:37:44 +00:00
parent 59221d54fd
commit 57361e79b3
No known key found for this signature in database
GPG Key ID: 8F15E14C0F7BA063
1 changed files with 23 additions and 0 deletions

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`
- View full usage:
`git gc --help`
- 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`