Pull git folder instead of whole tree

Is it possible to pull / clone only one folder from the git repository instead of the whole structure?

+3
source share
2 answers

No, It is Immpossible. You can clone an entire repository.

+3
source

As already mentioned, you can clone repositories only in general, and not in part. If you need to, you could put different projects in one repository. This is good at subversion, but not recommended in Git. If so, divide the repository into several repositories (one for each project) and merge these repositories into a central one using git submodule.

+3
source

Source: https://habr.com/ru/post/1764843/


All Articles