Blobless Git Clone Benefits | Generated by AI

Home 2025.11

The Git command:

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

is a partial clone that downloads almost no file contents (blobs) at checkout time. Here’s exactly what it does and why it’s useful:

What --filter=blob:none means

Key benefits

Example size comparison (real-world)

Repository Normal clone blob:none clone Speed gain
torvalds/linux ~5+ GB ~300–400 MB 10–20× faster
microsoft/vscode ~2–3 GB ~200 MB much faster

Common follow-up commands after blob:none clone

# First time you need a working tree:
git checkout <branch>        # downloads only needed blobs

# Or if you want everything later:
git fetch --unshallow        # not needed for blobless
# To fill in missing blobs permanently:
git repack -a -d             # optional, forces downloading all blobs

Summary

git clone --filter=blob:none https://github.com/example/repo.git

= “Give me the full history and structure immediately, but download file contents on-demand later.”
Great for huge monorepos or when you just want to browse history without waiting hours.


Back

x-ai/grok-4-fast

Donate