git sparse-checkout (set
git sparse-checkout (set <folder>... | disable)
Risk: Safe
What it does
Shows only some folders of a big repo in your working folder.
When to use it
In a huge repo where you only work in one part.
Example
$ git sparse-checkout set docsShow only the docs folder (and files at the top).
$ git sparse-checkout disableShow every folder again.
Learn it in: Big repos: shallow, sparse, LFS · Official docs