-
git init
-
git remote add -f origin git@repo:company/project.git
-
git config core.sparsecheckout true
Enables sparse checkout
echo example_folder > .git/info/sparse-checkout
Marks example_folder dir as a part of sparse checkout
git pull origin master
Fetches only example_folder from origin