TFS: submit changes done locally in one branch to another branch

元气小坏坏 提交于 2019-12-03 01:09:35

问题


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.

What's the easiest way to get this done in Visual Studio?


回答1:


This functionality is provided using tfpt unshelve /migrate. To use it, follow these steps:

  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.



来源:https://stackoverflow.com/questions/8923485/tfs-submit-changes-done-locally-in-one-branch-to-another-branch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!