从 TFVC 基于路径的分支过渡到 Git
Transition from TFVC Path-Based Branches to Git
我们目前有一个 TFVC 存储库,在文件夹级别有很多基于路径的分支。例如,
TFVC_Repo
Product A (Folder)
Dev (Branch)
Main (Branch)
Product B (Folder)
Dev (Branch)
Main (Branch)
如果我们将此存储库转换为 Git 并希望保持某种程度上相似的结构,因为 Git 没有文件夹级分支,这是为每个产品创建多个存储库的唯一选择?所以,我们最终会得到:
Git Repo Product A
Dev (Branch)
Master (Branch)
Git Repo Product B
Dev (Branch)
Master (Branch)
感谢您的指导。
TFVC分支和Git分支,虽然名字相似,但是有很多不同。
Are there similarities between TFVC and Git branch strategies?
The TFVC Feature Isolation branching strategy is similar to the Git
topic branches.
当您计划迁移到 Git.
时,您应该 select Git 的分支策略
If you’re currently using a long-lived feature branch strategy, it may
be easiest to begin adopting feature flags before migrating to Git, so
that you need to migrate as few branches as possible. Be sure to
document the mapping between legacy branches and the new branches in
Git so that your team understands where they should commit their new
work.
更多详情请看教程:Plan your migration to Git
另外,可以用TFS在文件夹中创建分支GIT,请遵循:Create a new branch from the web,方便管理,只适用于 TFS 2017 以上版本。
我们目前有一个 TFVC 存储库,在文件夹级别有很多基于路径的分支。例如,
TFVC_Repo
Product A (Folder)
Dev (Branch)
Main (Branch)
Product B (Folder)
Dev (Branch)
Main (Branch)
如果我们将此存储库转换为 Git 并希望保持某种程度上相似的结构,因为 Git 没有文件夹级分支,这是为每个产品创建多个存储库的唯一选择?所以,我们最终会得到:
Git Repo Product A
Dev (Branch)
Master (Branch)
Git Repo Product B
Dev (Branch)
Master (Branch)
感谢您的指导。
TFVC分支和Git分支,虽然名字相似,但是有很多不同。
Are there similarities between TFVC and Git branch strategies?
The TFVC Feature Isolation branching strategy is similar to the Git topic branches.
当您计划迁移到 Git.
时,您应该 select Git 的分支策略If you’re currently using a long-lived feature branch strategy, it may be easiest to begin adopting feature flags before migrating to Git, so that you need to migrate as few branches as possible. Be sure to document the mapping between legacy branches and the new branches in Git so that your team understands where they should commit their new work.
更多详情请看教程:Plan your migration to Git
另外,可以用TFS在文件夹中创建分支GIT,请遵循:Create a new branch from the web,方便管理,只适用于 TFS 2017 以上版本。