my-git

Partial Clone

Partial clone 用于减少 clone 时下载的 Git 对象。

大仓库中,历史和对象体积可能很大。Partial clone 可以让 Git 先拿必要元数据,blob 等对象按需下载。

示例

git clone --filter=blob:none <url>

常见含义:

具体支持情况要看 Git 版本和远端服务能力。

适合场景

注意事项

推荐组合

git clone --filter=blob:none --sparse <url>
cd repo
git sparse-checkout set services/order

延伸阅读