Git
Sparse Checkout Commands
Partial repository checkout
6 commands
Commands
Initialize sparse checkout
$ git sparse-checkout init
Enable sparse checkout mode.
Set sparse checkout paths
$ git sparse-checkout set <paths>
Define which paths to include in checkout.
Add sparse checkout paths
$ git sparse-checkout add <paths>
Add additional paths to sparse checkout.
List sparse checkout patterns
$ git sparse-checkout list
Show current sparse checkout patterns.
Reapply sparse checkout
$ git sparse-checkout reapply
Reapply sparse checkout rules to working tree.
Disable sparse checkout
$ git sparse-checkout disable
Disable sparse checkout and populate all files.