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

标签 visual-studio tfs branch branching-and-merging

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/

相关文章:

tfs - TF86001 : Team Foundation was unable to load the Office Add-in

svn - 颠覆到 TFS 迁移

unit-testing - 由于找不到 "TechTalk.SpecFlow"文件,SpecFlow 单元测试失败

git 根分支...它们是如何工作的?

c# - 是否有命令将 nuget.exe 指向特定的 NuGet.Config 文件?

c# - 如何在 Visual Studio 2015 中禁用 C# 6 支持?

c# - 无法从程序集 'Microsoft.TeamFoundation.TFStringComparer' 加载类型 'Microsoft.TeamFoundation.Common'

java - 什么是Java JDKV2

git - 在 Git 中重新定位远程分支

git - 如何正确使用带有 Git 钩子(Hook)的 CI 脚本来压缩源代码