mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-gc: add page (#1741)
This commit is contained in:
commit
e25d33fcac
1 changed files with 23 additions and 0 deletions
23
pages/common/git-gc.md
Normal file
23
pages/common/git-gc.md
Normal 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`
|
Loading…
Add table
Reference in a new issue