Git
Maintenance Commands
Repository maintenance
7 commands
Commands
Start background maintenance
$ git maintenance start
Enable automatic background maintenance.
Stop background maintenance
$ git maintenance stop
Disable automatic background maintenance.
Run maintenance tasks
$ git maintenance run
Manually run repository maintenance tasks.
Register for maintenance
$ git maintenance register
Register repo for background maintenance.
Unregister from maintenance
$ git maintenance unregister
Unregister repo from background maintenance.
Optimize repository pack
$ git repack -a -d --depth=250 --window=250
Aggressive repository optimization and compression.
Prune unreachable objects
$ git prune
Remove unreachable objects from database.