Loading tutorials
Intermediate · Mid: 12 chapters · 36 min read. States assumed prerequisites
Start readinggit status output. You should be comfortable at the command line and know roughly what a monorepo is: one repository that holds many projects, services, and libraries. No sparse checkout knowledge is needed. This chapter expgit status, and that you are comfortable in a terminal. It explains the three places Git keeps your files. Sparse checkout changes only one of them.git status, and that you are comfortable in a terminal. You should also know roughly what a monorepo is: one repository holding many projects.git sparse-checkout once.git sparse-checkout set. Here you learn to manage the sparse set day to day: see what is in it, grow it, shrink it, and turn it off.git sparse-checkout set in cone mode. Sparse checkout shrinks what Git writes to disk. A plain clone still downloads every file version in the history. Partial clone fixes that part.git sparse-checkout set at least once. It explains what Git does with files that sparse checkout leaves out, so the behavior of status, checkout, and merge stops being surprising.git sparse-checkout set in cone mode, and that you know the difference between the repository and the working tree. Cone mode covers most monorepos. This chapter covers the cases where it doesn't.git sparse-checkout set in cone mode and know that files outside the sparse set are skipped in the working tree. You should also know that Git keeps an index (the staging area) listing every tracked file.git sparse-checkout set in cone mode and know what a partial clone (--filter=blob:none) is. It covers how to combine them in CI jobs and scripts, and where those jobs usually break.git sparse-checkout set in cone mode and know that a partial clone skips file contents until they are needed. Sparse checkout limits what appears on disk. It does not change what the repository con