Git - Sparse checkout
mkdir target-dir # create dir to test sparse checkout
cd target-dir
git init # initialize git
git config core.sparseCheckout true # turn on sprase checkout true
git add remote -f <<REPO_URL>> # Add root url of the repository
echo "/your/subdirectory/url" >> ./.git/info/sparse-checkout # write urll for sparse checkout
git pull origin master