mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-21 16:51:02 +00:00
Update cheatsheets
This commit is contained in:
29
git-gc
Normal file
29
git-gc
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user