[{"data":1,"prerenderedAt":143},["ShallowReactive",2],{"term-s\u002Fsparse-checkout":3,"related-s\u002Fsparse-checkout":134},{"id":4,"title":5,"acronym":6,"body":7,"category":60,"description":118,"difficulty":119,"extension":120,"letter":121,"meta":122,"navigation":123,"path":124,"related":125,"seo":128,"sitemap":129,"stem":132,"subcategory":6,"__hash__":133},"terms\u002Fterms\u002Fs\u002Fsparse-checkout.md","Sparse Checkout",null,{"type":8,"value":9,"toc":112},"minimark",[10,15,19,23,39,43,101,105,108],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Sparse checkout lets you clone only specific folders from a repo — grocery shopping with a list instead of buying the whole store. Got a monorepo with 40 packages and you only work on 3? Sparse checkout means your laptop only downloads what you need. Faster clone, smaller footprint, and you never accidentally edit the package you weren't supposed to touch.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30,31,34,35,38],{},"Git sparse checkout (",[27,28,29],"code",{},"git sparse-checkout init",", ",[27,32,33],{},"git sparse-checkout set \u003Cpaths>",") limits the working tree to specified directories, leaving other tracked files absent without cloning a separate repo. Combined with ",[27,36,37],{},"--filter=blob:none"," (partial clone), you can clone large monorepos and download only the blobs you actually need. It's standard practice in large codebases at Netflix, Google, and Meta-scale engineering orgs.",[11,40,42],{"id":41},"show-me-the-code","Show Me The Code",[44,45,50],"pre",{"className":46,"code":47,"language":48,"meta":49,"style":49},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git clone --filter=blob:none --sparse git@github.com:org\u002Fmonorepo.git\ncd monorepo\ngit sparse-checkout set packages\u002Ffrontend packages\u002Fshared\n","bash","",[27,51,52,74,84],{"__ignoreMap":49},[53,54,57,61,65,68,71],"span",{"class":55,"line":56},"line",1,[53,58,60],{"class":59},"sBMFI","git",[53,62,64],{"class":63},"sfazB"," clone",[53,66,67],{"class":63}," --filter=blob:none",[53,69,70],{"class":63}," --sparse",[53,72,73],{"class":63}," git@github.com:org\u002Fmonorepo.git\n",[53,75,77,81],{"class":55,"line":76},2,[53,78,80],{"class":79},"s2Zo4","cd",[53,82,83],{"class":63}," monorepo\n",[53,85,87,89,92,95,98],{"class":55,"line":86},3,[53,88,60],{"class":59},[53,90,91],{"class":63}," sparse-checkout",[53,93,94],{"class":63}," set",[53,96,97],{"class":63}," packages\u002Ffrontend",[53,99,100],{"class":63}," packages\u002Fshared\n",[11,102,104],{"id":103},"when-youll-hear-this","When You'll Hear This",[16,106,107],{},"\"Use sparse checkout — you don't need the entire monorepo for frontend work.\" \u002F \"Sparse checkout cut our CI clone time from 4 minutes to 30 seconds.\"",[109,110,111],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":49,"searchDepth":76,"depth":76,"links":113},[114,115,116,117],{"id":13,"depth":76,"text":14},{"id":21,"depth":76,"text":22},{"id":41,"depth":76,"text":42},{"id":103,"depth":76,"text":104},"Sparse checkout lets you clone only specific folders from a repo — grocery shopping with a list instead of buying the whole store.","intermediate","md","s",{},true,"\u002Fterms\u002Fs\u002Fsparse-checkout",[126,127],"Git","Monorepo",{"title":5,"description":118},{"changefreq":130,"priority":131},"weekly",0.7,"terms\u002Fs\u002Fsparse-checkout","5NATo6A92MjeYInNYc_XuxGfoYUUmd2AwGegWboEcvI",[135,139],{"title":126,"path":136,"acronym":6,"category":60,"difficulty":137,"description":138},"\u002Fterms\u002Fg\u002Fgit","beginner","Git is like a magical save system for your code. Every time you save (commit), it remembers exactly what changed.",{"title":127,"path":140,"acronym":6,"category":141,"difficulty":119,"description":142},"\u002Fterms\u002Fm\u002Fmonorepo","general","A monorepo is when you put all your different projects — frontend, backend, shared libraries — in one giant single repository instead of separate repos.",1775560932069]