Created
February 28, 2019 22:06
-
-
Save triangletodd/66e299ab69ae1125b5f4250710a75bbf to your computer and use it in GitHub Desktop.
Sparse git clone (clone a single subdirectory from a repo)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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