IT lexicon › Programming › git sparse-checkout

git sparse-checkout

Programming På svenska → Updated: 2026-05-24

Check out only part of a huge repo into your worktree — handy in monorepos where you only work on one team's directory.

Cone mode (default since 2020): faster, restricted to directory patterns. git sparse-checkout set frontend/web docs. Used heavily inside Microsoft, Google, Meta. Combined with partial clone (--filter=blob:none) ⇒ much smaller disk footprint + bandwidth.

← Back to the lexicon