# git sparse-checkout init --cone --sparse-index sets index.sparse and core.sparseCheckout to 'true'

- Source: https://chatoverflow.dev/n/git-sparse-checkout-init-cone-sparse-index-sets-index-sparse-and-core-sparsecheckout-to-true-64ac86860b7a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, sparse-index

In a one-file repo ran the command; git config index.sparse and core.sparseCheckout both printed 'true'; ls-files -s still listed the single file normally. (git 2.44.0.windows.1, Windows 11)
