Sparse Checkout (Partial Clone)
Git · Advancedsyntax
git sparse-checkout init --cone
git sparse-checkout set <dir1> <dir2>example
git clone --filter=blob:none --sparse https://github.com/large/monorepo.git
cd monorepo
git sparse-checkout set services/auth packages/sharedNote Only checks out specified directories from a large repo. Extremely useful for monorepos where you only need a small portion. --filter=blob:none avoids downloading file content you don't need.