开发者

In SVN you can check out a portion of the file structure, can you do the same in GIT

开发者 https://www.devze.com 2022-12-16 05:59 出处:网络
In SVN you can checkout a portion of a repository ie: http://some-url.com/repo/app1/trunk/plugins/plugin1

In SVN you can checkout a portion of a repository ie:

http://some-url.com/repo/app1/trunk/plugins/plugin1

Can you do the same when you git cl开发者_如何学Cone? As I cannot get this to work

Thanks


No. When you clone, you get the whole repository. In Git, a repository is viewed as a contiguous element that shouldn't be split up any further. If people frequently need to get only "part" of the repository, the Git way of thinking suggests that it should be split off, and you should consider using submodules instead.


No you cannot, git treats the entire repository as a unit and must be checked out in its entirety.

0

精彩评论

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