Skip to content
The Git Crypt

/static/cripta/en/ossada/maintenance/

Menu

GIT-020 · Workshop

git maintenance

The hired caretaker: gc, prefetch and friends on an agreed schedule.

Every repository gathers dust: loose objects, fragmented packs, a stale commit graph. maintenance start hires a caretaker — it registers periodic cleanup tasks with the system scheduler and runs them quietly, out of your way.

The tasks have names and hours: prefetch fetches the remote's objects ahead of time, commit-graph speeds up log, gc compacts the vault. In large repositories, it is the difference between an instant status and coffee while the cursor waits.

$ git maintenance start
$ git maintenance run --task=gc
Enumerating objects: 4312, done.
The crypt's cleaning, delegated to the caretaker.