git-sparse-checkout
仅检出仓库的部分文件,而不是克隆或检出全部文件(稀疏检出)。 更多信息:https://manned.org/git-sparse-checkout.
git sparse-checkout init
git sparse-checkout disable
git sparse-checkout set {{路径/到/目录}}
git sparse-checkout add {{路径/到/目录}}