Showing posts with label git pull. Show all posts
Showing posts with label git pull. Show all posts

Thursday, January 4, 2018

To pull specific directory with git


To pull specific folder from git repository or git repo

mkdir directoryName
cd directoryName
git init
git remote add origin -f <>
git config core.sparsecheckout true
echo / >> .git/info/sparse-checkout
git pull origin master