对存储库中的项目进行选择性签出或查看
我有一堆相互关联的项目,它们共享相同的项目树。我正在寻找一个版本控制系统,它提供了签出项目树的子集的可能性。
如果我的完整项目树如下所示:
Project Root
|-Feature1
| |-SubFeature11
| \-SubFeature12
|-Feature2
| |-SubFeature21
| \-SubFeature22
|-file1
\-file2
我希望能够仅签出这样的子集:
Project Root
|-Feature1
| \-SubFeature12
|-Feature2
| \-SubFeature22
|-file1
\-file2
那么您知道任何允许在存储库上进行选择性签出或视图的版本控制系统吗?
I have a bunch of interconnected projects which share the same project tree. I'm looking for a version control system which provides a possibility to checkout a subset of the project tree.
If my the full project tree looks like this:
Project Root
|-Feature1
| |-SubFeature11
| \-SubFeature12
|-Feature2
| |-SubFeature21
| \-SubFeature22
|-file1
\-file2
I want be able to checkout only subset like this:
Project Root
|-Feature1
| \-SubFeature12
|-Feature2
| \-SubFeature22
|-file1
\-file2
So do you know any version control system that allows to do selective checkout or a view on a repository?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SVN 支持此功能,搜索稀疏目录。
如果您使用 tortoise svn,您应该做的是不递归检查根目录,然后打开存储库浏览器,找到您要添加的目录并右键单击 ->;更新为修订版。
编辑:使用更高版本的 tortoise(我不记得从哪个版本开始,但绝对可以,但如果您正在阅读本文,那么当前版本包含它)要容易得多,只需单击 执行递归结账时选择项目...按钮。
SVN supports this, search for sparse directories.
If you're using tortoise svn what you should do is check out the root directory not recursively then open the repository browser, find the directory you want to add and right-click -> update to revision.
Edit: With later versions of tortoise (I don't remember starting with which version but definitely but if you're reading this then the current version includes it) it's much easier, just click the Choose Items... button when performing a recursive checkout.
从版本 1.7.0 开始,Git 支持稀疏签出,也是。创建一个配置文件
.git/info/sparse-checkout
并存储您想要参与此签出的子项目的路径。另请参阅这些相关问题< /a> 了解详细信息。As of version 1.7.0, Git supports sparse checkouts, too. Create a configuration file
.git/info/sparse-checkout
and store the paths to the subprojects you want to be part of this checkout. See also these related questions for details.