Skip to content

Instantly share code, notes, and snippets.

@npero
Created September 5, 2012 10:29
Show Gist options
  • Save npero/3634719 to your computer and use it in GitHub Desktop.
Save npero/3634719 to your computer and use it in GitHub Desktop.
Enable sparse-checkout
Enable sparse-checkout:
git config core.sparsecheckout true
Configure sparse-checkout by listing your desired sub-trees in .git/info/sparse-checkout:
echo some/dir/ >> .git/info/sparse-checkout
echo another/sub/tree >> .git/info/sparse-checkout
Update your working tree:
git read-tree -mu HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment