In git I want to download a folder from a Github repository and add it to a subdirectory in my repo like so:
repo/folder/subfolder/
repo/folder/subfolder/clonedfolder //cloned folder from git hub
But I get the path directories as well which I don't want.
repo/folder/subfolder/folder/folder1/folder2/clonedfolder
This what I have tried
repo/folder/subfolder$ git init
repo/folder/subfolder$ git remote add -f origin [email protected]:repo/repo.git
repo/folder/subfolder$ git sparse-checkout init
repo/folder/subfolder$ git sparse-checkout set clonedfolder
repo/folder/subfolder$ git sparse-checkout list
- clonedfolder
repo/folder/subfolder$ git pull origin develop
Is this possible in git?