With the growing usage of mono-repositories the standard git checkout or git status no longer work and become frustrating slow. A solution would be to use Git LFS(Large File Storage) but not all repositories have this extension installed.
An alternative solution can be provided through the (new) git sparse-checkout command.
To restrict your working directory to a set of directories, run the following commands:
git sparse-checkout init
git sparse-checkout set <dir1> <dir2> ...
If you get stuck, run git sparse-checkout disable to return to a full working directory.
Remark: this feature is part of git 2.25. So if the command is not recognized check your git version and update first.
More information: https://github.blog/2020-01-17-bring-your-monorepo-down-to-size-with-sparse-checkout/