Answers for "how to clone only sub directory git"

1

how to clone only sub directory git

Cloning only a subdirectory is not possible in Git. 
The network protocol doesn't support it, 
the storage format doesn't support it.
Every single answer to this question always clones the whole repository.
Posted by: Guest on January-05-2022
1

git clone directory from repository

git clone [repo]
cd [name of sub-dir]
git filter-branch --prune-empty --subdirectory-filter [path to sub-dir] HEAD
Posted by: Guest on November-06-2021

Browse Popular Code Answers by Language