开发者

pull a git folder instead of the entire tree

开发者 https://www.devze.com 2023-01-16 09:32 出处:网络
Is it possible to pull/clone only one folder from a git repository instead of of the who开发者_运维知识库le structure?No it\'s not possible. You can only clone a whole repository.As said, you can only

Is it possible to pull/clone only one folder from a git repository instead of of the who开发者_运维知识库le structure?


No it's not possible. You can only clone a whole repository.


As said, you can only clone repositories as a whole, and not parts of them. If you need to, you might have put different projects into a single repository. This is good in subversion, but not recommendable in Git. If this is the case, split your repository into multiple repositories (one for each project), and aggregate these repositories in a central one using git submodule.

0

精彩评论

暂无评论...
验证码 换一张
取 消