Source
- use
--filter=blob:noneto only download the commits and trees
git clone --filter=blob:none <url>
# or
git fetch --filter=blob:none [options...]- only when you then do a checkout of a certain commit, git will download the corresponding blobs for that commit