Git · Senior · Question 16 of 76
Why does git status get slow in very large repositories, and what helps?
- ✓Correct answer: It stats every file; fsmonitor and sparse index reduce that
- 2It recompresses objects; disabling compression helps
- 3It contacts the server; working offline helps
Explanation
Status compares the working tree with the index by checking file metadata. A filesystem monitor reports only changed files, and sparse checkout with a sparse index shrinks what's scanned.