TFS:将在一个分支本地完成的更改提交到另一个分支 [英] TFS: submit changes done locally in one branch to another branch

查看:93
本文介绍了TFS:将在一个分支本地完成的更改提交到另一个分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对许多文件进行了更改,与此同时,我发现我宁愿将此未经测试的代码提交给一个尚未创建的分支,这样现有代码库的用户就不会受到影响.

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:

  1. 创建更改的架子集(通过UI或tf shelve . /R)
  2. 创建新分支
  3. 下载并安装 Team Foundation Server电动工具
  4. 从Visual Studio命令提示符处,运行以下命令:tfpt unshelve /migrate /source:$/TeamProject/Main /target:$/TeamProject/Beta
  1. Create a shelveset of your changes (from the UI, or tf shelve . /R)
  2. Create the new branch
  3. Download and install the Team Foundation Server Power Tools
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆