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
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
