mirror of https://github.com/CrimsonTome/tldr.git
git-gc: add page
parent
59221d54fd
commit
57361e79b3
|
@ -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`
|
Loading…
Reference in New Issue