QA
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→

More Git & GitHub Interview Questions

Beginner LevelGit & GitHub

Compare git rebase versus git merge and explain how git bisect finds regressions.

Beginner LevelGit & GitHub

What is the difference between git init and git clone?

Beginner LevelGit & GitHub

What are the Three Trees in Git (Working Directory, Staging Area / Index, Commit History)?