Sparse Checkout
Clone only the directories you need
Sparse checkout lets you clone only the directories you need from a large repository.
Large monorepos have many directories. You only need a few. Sparse checkout lets you pick which ones to download.
Full Repository
frontend/
src/
App.tsx
package.json
backend/
src/
server.py
requirements.txt
docs/
guide.md
shared/
types.ts
Terminal
# Full clone downloads everything: $ git clone big-monorepo # frontend/ backend/ docs/ shared/ mobile/ ... # 5 GB of files you don't need # Sparse checkout: only get what you need # Download just frontend/ and shared/