对存储库中的项目进行选择性签出或查看

发布于 2024-09-05 04:20:47 字数 425 浏览 1 评论 0原文

我有一堆相互关联的项目,它们共享相同的项目树。我正在寻找一个版本控制系统,它提供了签出项目树的子集的可能性。

如果我的完整项目树如下所示:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

七禾 2024-09-12 04:20:47

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.

Screenshot

情徒 2024-09-12 04:20:47

从版本 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文