How do I clone, fetch or sparse checkout a single directory or a list of directories from git repository?
问题 How do I clone, fetch or sparse checkout a single file or directory or a list of files or directories from a git repository avoiding downloading the entire history or at least keeping history download at minimum? For the benefit of people landing here, these are references to other similar questions: How do I clone a subdirectory only of a Git repository? How to sparsely checkout only one single file from a git repository? These similar questions were asked some 10 years ago and git evolved