TFS从现有团队项目创建Main and Development分支 [英] TFS Create Main and Development branch from existing team project
问题描述
当前,我们在TFS 2010中有一个团队项目,名为 MyApp 。我想按照ALM Rangers指南中的说明创建 MAIN 和 DEV 分支。我知道如果现有的团队项目最初是由分支机构创建的,那会更容易,但是那是过去的事情。我不想丢失现有项目中的版本历史记录。
Currently we have a team project in TFS 2010 named MyApp that was put in years ago. I would like to create MAIN and DEV branches as described in the ALM Rangers guide. I know it would've been easier if the existing team project was created with the branches initially, but that's in the past. I don't want to lose the version history in the existing project.
是否可以创建这些分支(或至少创建一个 DEV 分支)而不影响现有项目?
Is it possible to create those branches (or at least a DEV branch) without affecting the existing project?
更新:我的文件夹结构如下所示(粗体为文件夹,斜体为文件):
UPDATE My folder structure looks something like this (bold is folder, italic is file):
- 服务器\默认集合
- MyApp
- 库
- 软件包
- 存储库
- MVCClient
- MyApp.sln
- server\DefaultCollection
- MyApp
- Lib
- packages
- Repositories
- MVCClient
- MyApp.sln
推荐答案
解决方案,但这是一个选择:
There's not a great solution to this, but here's one option:
创建一个MAIN文件夹。将所有源复制到此文件夹下。将MAIN转换为分支。
Create a MAIN folder. Copy all your source under this folder. Convert MAIN to a branch. Branch DEV from MAIN.
保留旧的源代码(不在MAIN文件夹下的东西)以备历史之用。
Keep your old source code around (the stuff not under the MAIN folder) for history purposes.
这篇关于TFS从现有团队项目创建Main and Development分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- MyApp
- MyApp