Background Maintenance With git maintenance
Register scheduled tasks that keep a repository packed and fast.
Run git maintenance start to register scheduled optimization for the repository.
01Command
Command
$ git maintenance start02What it does
git maintenance registers platform schedulers (launchd, cron, Task Scheduler) to run incremental repacks and commit-graph updates, so clones and fetches stay fast without manual git gc. It is automation that would otherwise require editing system schedulers by hand.
03Risk
!Warning: It modifies scheduled tasks for your user; run git maintenance stop to remove them.
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- git-maintenance documentationEvidence: Documents git maintenance, which schedules background optimization tasks.
Last verified: 2026-10-13 · Category: Developer