TFS:将在一个分支本地完成的更改提交到另一个分支 [英] TFS: submit changes done locally in one branch to another branch
问题描述
我对许多文件进行了更改,与此同时,我发现我宁愿将此未经测试的代码提交给一个尚未创建的分支,这样现有代码库的用户就不会受到影响.
I made changes to a lot of files, and in the meantime I figured I rather commit this untested code to a yet-to-be-created branch, so that users of the existing code base are not affected.
当我碰到很多很多文件并创建并添加了新的子项目等时,我想避免手动复制文件和文件夹.
As I touched really many, many files and created and added new sub-projects etc., I want to avoid copying files and folders manually.
在Visual Studio中最简单的方法是什么?
What's the easiest way to get this done in Visual Studio?
推荐答案
此功能是使用tfpt unshelve /migrate
提供的.要使用它,请按照下列步骤操作:
This functionality is provided using tfpt unshelve /migrate
. To use it, follow these steps:
- 创建更改的架子集(通过UI或
tf shelve . /R
) - 创建新分支
- 下载并安装 Team Foundation Server电动工具
- 从Visual Studio命令提示符处,运行以下命令:
tfpt unshelve /migrate /source:$/TeamProject/Main /target:$/TeamProject/Beta
- Create a shelveset of your changes (from the UI, or
tf shelve . /R
) - Create the new branch
- Download and install the Team Foundation Server Power Tools
- From a Visual Studio Command Prompt, run the following command:
tfpt unshelve /migrate /source:$/TeamProject/Main /target:$/TeamProject/Beta
这实际上将把架子集中的路径重新写入到新分支.
This will essentially re-write the paths in your shelveset to the new branch.
这篇关于TFS:将在一个分支本地完成的更改提交到另一个分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!