Skip to content

Instantly share code, notes, and snippets.

@justrjlewis
Last active December 26, 2015 00:09
Show Gist options
  • Save justrjlewis/7062374 to your computer and use it in GitHub Desktop.
Save justrjlewis/7062374 to your computer and use it in GitHub Desktop.
shell commands to sparse checkout a file.
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