Skip to content

Instantly share code, notes, and snippets.

@ajaragz
ajaragz / sparse_clones.md
Created February 16, 2023 17:39 — forked from hofnerb/sparse_clones.md
Make sparse clone
git init <repo>
cd <repo>
git remote add -f origin <url>

This creates an empty repository with your remote, and fetches all objects but doesn't check them out. Then do:

git config core.sparseCheckout true

Keybase proof

I hereby claim:

  • I am ajaragz on github.
  • I am ajara (https://keybase.io/ajara) on keybase.
  • I have a public key ASAhV92yyeYxs9G6wB9ZSaZAF2o1idZQw9K92JPg9WMfYQo

To claim this, I am signing this object: