epcim
6/22/2018 - 8:32 AM

Enable sparse-checkout

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