gpt4 book ai didi

visual-studio - TFS > 分支 : Converting Source Folder To Branch

转载 作者:行者123 更新时间:2023-12-04 17:32:11 25 4
gpt4 key购买 nike

TFS:将源文件夹转换为分支有什么后果?

我想从我们有源代码的文件夹中创建一个分支,我在 VisualStudio 的“分支”对话框中看到以下选项:

“立即将源文件夹转换为分支(启用可视化)”

我是否会丢失任何信息(例如文件历史记录等)。

这样做有什么缺点吗?

感谢并感谢您的帮助。

永远的勒纳

最佳答案

Team Foundation Server 2010 的发布开始了区别在分支和文件夹之间。下图显示了源代码管理资源管理器中文件夹结构的顶层:

enter image description here

As the illustration shows, you can still use folders to organize branches within a team project's version control hierarchy. However, folders and branches have a different appearance and different capabilities. When you right-click a folder or branch and click Properties, you display different information and different functionality.

When you perform branch operations, branches have important advantages over folders. Branches support version control features that provide extra visibility into your branch structure and into where your changesets have merged. (For more information, see these wonderful links: Visual Studio TFS Branching Guide)



尽管您仍然可以在文件夹之间进行分支和合并, 您团队的最佳实践是仅在分支之间进行分支和合并 .

以上几点都与TFS和VS的区别有关,关于Trunk和main,可以看Jesse Chisholm在 Folder converted to branch?中的回答。

关于visual-studio - TFS > 分支 : Converting Source Folder To Branch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40791805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com