Command

git sparse-checkout

Select materialized paths, not permissions.

Formal Syntax & Structure

git syntaxgit
git sparse-checkout set --cone DIRECTORY
Git Reference