Restricts the checkout to the given directory, shrinking disk use in huge monorepos. Files outside the set are removed from the working tree but stay in the repository. Add more directories with git sparse-checkout add.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.