FMeinicke's Wiki

Home

❯

Git

❯

Fetch large commit history without every blob

Fetch large commit history without every blob

May 26, 20251 min read

  • git/--filter
  • git/blob

—filter blob

Source

  • https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/#user-content-partial-clone
  • use --filter=blob:none to 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

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub