Interview Prep/Git & GitHub/Scale, Submodules, LFS and GitHub Automation

A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?

IntermediateScenarioScale, Submodules, LFS and GitHub Automation
Answer

Situation read → Most developers do not need all files or all blobs locally.

What I'd do →

  1. Partial clone: git clone --filter=blob:none --sparse URL.
  2. Limit the working tree: git sparse-checkout set services/billing libs/common.
  3. Enable core.fsmonitor and feature.manyFiles for faster status.
  4. Run git maintenance start for background prefetch and commit-graph updates.

Why → Blobs download on demand, and only needed paths are checked out.

Interview tip → Know the difference: shallow limits history depth, partial clone limits object types.

All Git & GitHub questions Roadmap: Git & GitHub

More on Scale, Submodules, LFS and GitHub Automation