git sparse-checkout init --cone

Category: Git - Advanced

git sparse-checkout init --cone

Enable sparse checkout with cone mode

Turns on sparse checkout, so future checkouts only materialize the directories you choose. Cone mode is the simpler, recommended pattern matching. Follow with git sparse-checkout set to pick directories.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.