Last active
December 26, 2015 00:09
-
-
Save justrjlewis/7062374 to your computer and use it in GitHub Desktop.
shell commands to sparse checkout a file.
This file contains 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
git init | |
git remote add -f <name> <url> | |
git config core.sparsecheckout true | |
echo in/repo/path/to/sub_directory/*> .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