Senior LevelGit & GitHub
How does git maintenance run background optimization tasks?
❓ Interview Prompt: Explain git maintenance start, background crontab / systemd timers, incremental gc, commit-graph updates, and prefetching.
git maintenance registers OS cron or systemd timers to periodically run incremental garbage collection, commit-graph updates, and background ref prefetching.
Code Implementation Example
bash
git maintenance start
git maintenance status💡Registering background repository maintenance timers using git maintenance.
🎯 Interview Key Takeaway
Run git maintenance start to automate background commit-graph updates, packfile maintenance, and ref prefetching.
#git maintenance#Background Optimization#Senior
Back to all Git & GitHub Questions→