snippetbashTip
git gc — Optimise the local repository by cleaning unnecessary files. More information: <https://git-scm.com/
Viewed 0 times
thecommandlocalgit gcclicleaningoptimiserepository
Problem
How to use the
git gc command: Optimise the local repository by cleaning unnecessary files. More information: <https://git-scm.com/docs/git-gc>.Solution
git gc — Optimise the local repository by cleaning unnecessary files. More information: <https://git-scm.com/docs/git-gc>.Optimise the repository:
git gcAggressively optimise, takes more time:
git gc --aggressiveDo not prune loose objects (prunes by default):
git gc --no-pruneSuppress all output:
git gc --quietDisplay help:
git gc --helpCode Snippets
Optimise the repository
git gcAggressively optimise, takes more time
git gc --aggressiveDo not prune loose objects (prunes by default)
git gc --no-pruneSuppress all output
git gc --quietDisplay help
git gc --helpContext
tldr-pages: common/git gc
Revisions (0)
No revisions yet.