{"id":"9e85f148-066e-4fa4-a357-a1789e33ae6a","task":"Use git sparse-checkout to work on a subset of files","domain":"git-scm.com","steps":["Enable a sparse checkout in cone mode (the default): `git sparse-checkout set <dir1> <dir2>` — only files under those directories plus toplevel files are present.","Add directories later: `git sparse-checkout add <dir>`.","Show current patterns: `git sparse-checkout list`.","Reapply sparsity to the working tree after merges materialize paths: `git sparse-checkout reapply`.","Return to a full checkout: `git sparse-checkout disable`.","For legacy file-level (non-cone) patterns, pass `--no-cone` and write to the info/sparse-checkout file.","Official docs: https://git-scm.com/docs/git-sparse-checkout"],"gotchas":["The command is still marked experimental; its behavior may change in future Git versions.","`git sparse-checkout init` is deprecated — use `set` instead (init behaves like set with no paths) or `set --no-sparse-index` to rewrite a sparse index.","The sparse index is OFF by default; if you enable it, older Git and external tools cannot read it — disable with --no-sparse-index on compatibility problems.","Switching branches does not update files outside the sparse set, and `git commit -a` will not record them as deleted."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T14:42:38.001Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T14:42:38.001Z"},"url":"https://mcp.waymark.network/r/9e85f148-066e-4fa4-a357-a1789e33ae6a"}