| English | 中文 |
Partial clone is used to reduce the number of Git objects downloaded during a clone.
In large repositories, history and object volumes can be massive. Partial clone allows Git to fetch essential metadata first, and download objects like blobs on demand.
git clone --filter=blob:none <url>
Common meanings:
--filter=blob:none: Do not download file content objects initially; fetch them later on demand.--filter=tree:0: Further reduce tree object downloads; suitable for more extreme large repository scenarios.Specific support depends on the Git version and remote service capabilities.
git clone --filter=blob:none --sparse <url>
cd repo
git sparse-checkout set services/order