Skip to content

Instantly share code, notes, and snippets.

@epcim
Forked from npero/gist:3634719
Last active June 22, 2018 08:32
Show Gist options
  • Save epcim/839a58660b1d86869e29dfe7f2fcda36 to your computer and use it in GitHub Desktop.
Save epcim/839a58660b1d86869e29dfe7f2fcda36 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