Skip to content

Instantly share code, notes, and snippets.

@triangletodd
Created February 28, 2019 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triangletodd/66e299ab69ae1125b5f4250710a75bbf to your computer and use it in GitHub Desktop.
Save triangletodd/66e299ab69ae1125b5f4250710a75bbf to your computer and use it in GitHub Desktop.
Sparse git clone (clone a single subdirectory from a repo)
mkdir config
cd config
git init
git remote add -f origin https://github.com/cockroachdb/cockroach
git config core.sparseCheckout true
echo "cloud/kubernetes" >> .git/info/sparse-checkout
git pull origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment