In SVN you can check out a portion of the file structure, can you do the same in GIT
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.
精彩评论