I have my git repo which, at the root, has two sub-dirs
svn co svn+ssh://firstname.lastname@example.org/home/admin/repos/finisht/static static
This is called a sparse checkout, available since version 1.7.0.
"Sparse checkout" allows populating the working directory sparsely. It uses the
git-update-index) to tell Git whether a file in the working directory is worth looking at.
$GIT_DIR/info/sparse-checkoutis usually used to specify what files are in, you can also specify what files are not in, using negate patterns. For example, to remove the file