blob 819ca41ab6aa1794fc0caed09a96a30d4cbf8d4a 2367 bytes (raw)
name: Documentation/git-maintenance.txt # note: path name is non-authoritative(*)
git-maintenance - Run tasks to optimize Git repository data
'git maintenance' run [<options>]
Run tasks to optimize Git repository data, speeding up other Git commands
and reducing storage requirements for the repository.
Git commands that add repository data, such as `git add` or `git fetch`,
are optimized for a responsive user experience. These commands do not take
time to optimize the Git data, since such optimizations scale with the full
size of the repository while these user commands each perform a relatively
The `git maintenance` command provides flexibility for how to optimize the
Run one or more maintenance tasks. If one or more `--task=<task>`
options are specified, then those tasks are run in the provided
order. Otherwise, only the `gc` task is run.
The `commit-graph` job updates the `commit-graph` files incrementally,
then verifies that the written data is correct. The incremental
write is safe to run alongside concurrent Git processes since it
will not expire `.graph` files that were in the previous
`commit-graph-chain` file. They will be deleted by a later run based
on the expiration delay.
Clean up unnecessary files and optimize the local repository. "GC"
stands for "garbage collection," but this task performs many
smaller tasks. This task can be expensive for large repositories,
as it repacks all Git objects into a single pack-file. It can also
be disruptive in some situations, as it deletes stale data. See
linkgit:git-gc for more details on garbage collection in Git.
When combined with the `run` subcommand, run maintenance tasks
only if certain thresholds are met. For example, the `gc` task
runs when the number of loose objects exceeds the number stored
in the `gc.auto` config setting, or when the number of pack-files
exceeds the `gc.autoPackLimit` config setting.
Do not report progress or other information over `stderr`.
If this option is specified one or more times, then only run the
specified tasks in the specified order. See the 'TASKS' section
for the list of accepted `<task>` values.
Part of the linkgit:git suite
solving 819ca41ab6 ...
found 819ca41ab6 in https://80x24.org/mirrors/git.git
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).