Using the following commands, I was able to check only the Documentation/ directory in the git repository located in git://github.com/git/git.git :
git init git remote add -f github-git git://github.com/git/git.git git config core.sparsecheckout true echo Documentation/ >> .git/info/sparse-checkout git pull github-git master
The git documentation says nothing about the impossibility of making new changes, so it seems like it should work fine. Indeed, I tested this, and I can confirm that after performing a sparse check, I was able to make new changes.
(I am using git version 1.7.0.4)
Jay Sullivan Jun 26 '12 at 19:21 2012-06-26 19:21
source share