mkdir <repo>
git init
git remote add origin <giturl>
git config core.sparsecheckout true
echo "<path>/*" >> .git/info/sparse-checkout
git pull --depth=1 origin <branch>
[source](https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/28039894#28039894)