Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

site:stackoverflow.com git clone specific folder

git init
git remote add [REMOTE_NAME] [GIT_URL]
git fetch REMOTE_NAME
git checkout REMOTE_NAME/BRANCH -- path/to/directory
//to clone specific folder from remote repo (i.g.github).
//1.create folder in your local machine to be the container.
//2.perform above commands in the created folder.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #clone #specific #folder
ADD COMMENT
Topic
Name
5+1 =