删除 Team Foundation Server 2010 中的分支映射

发布于 2024-10-08 19:06:58 字数 395 浏览 2 评论 0原文

我有一个针对多个项目的源代码控制解决方案。当我第一次将旧代码迁移到 TFS 时,我为分支创建了 main、dev、release 区域。当时作为 TFS 的新手,我将一个项目分支到开发区域,该项目创建了银色的小分支图标来显示它们之间的关系。当然,完成此操作后,我不能再在该点之上或之下进行分支。所以,我无法分支整个解决方案。

我尝试删除分支的映射/关联,以便我可以从树的更高位置分支,但找不到方法来做到这一点。我备份了源代码管理并删除了除主分支中的原始分支之外的所有其他关联分支,但尽管删除了其他分支,但该关联仍然存在(我假设 TFS 仍然包含与我创建的其他分支的这些关联的历史记录)。

我的问题是:如何安全地删除分支关联(银色分支图标),同时如果可能的话保留历史记录(我不关心是否能够再合并),以便我可以从树中更高或更低的另一个区域进行分支?

I've got a solution in source control with multiple projects. When I first migrated old code to TFS, I created main, dev, release areas for branches. Being new to TFS at the time, I branched a single project to the dev area, which created the little silver branch icon to show the relationship between them. Having done that, of course, I can no longer branch above or below that spot. So, I can't branch a whole solution.

I tried removing the mapping/association of branches so that I could branch from higher in the tree, but can't find a way to do that. I backed up source control and deleted all other associated branches except for the original one in the Main branch, but the association is still there despite having deleted the others (I assume TFS still contains history of those associations to the other branches I created).

My question is: How do I safely remove branch associations (the silver branch icon) while keeping history if possible (I don't care about being able to merge anymore), so that I can branch from another area higher or lower in the tree?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

番薯 2024-10-15 19:06:58

显然,根据用户反馈,右键菜单中没有这个选项。可以通过“文件”>“访问”来访问它。源代码控制>分支和合并>转换为文件夹

源:Microsoft Connect

Evidently, the right-click menu does not have this option due to user feedback. It can be accessed via File > Source Control > Branching and Merging > Convert to Folder

Source: Microsoft Connect

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