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.