commands.sh

git maintenance

all

Run tasks to optimize Git repository data.

More info →

Examples (5)

Register the current repository in the user's list of repositories to daily have maintenance run

Schedule maintenance tasks to run on the current repository every hour

Halt the background maintenance schedule for the current repository

Remove the current repository from the user's maintenance repository list

git maintenance unregister

Run a specific maintenance task on the current repository

git maintenance run --task commit-graph|gc|incremental-repack|loose-objects|pack-refs|prefetch
made by @shridhargupta | data from tldr-pages