TFS: send changes made locally in one branch to another branch

I made changes to a large number of files, and in the meantime I decided that I would rather put this unverified code on a branch that was not yet created, so that users of the existing code base would not be affected.

When I touched really many, many files, created and added new subprojects, etc., I want to avoid manually copying files and folders.

What is the easiest way to do this in Visual Studio?

+66
branch tfs visual-studio-2010 tfs-power-tools
Jan 19 '12 at 9:11
source share
1 answer

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

  • Create shelves of your changes (from the user interface or tf shelve . /R )
  • Create a new branch
  • Download and install Team Foundation Server Tools
  • At the Visual Studio command prompt, run the following command: tfpt unshelve /migrate /source:$/TeamProject/Main /target:$/TeamProject/Beta

This will significantly rewrite the paths in your shelf to a new branch.

+87
Jan 19 '12 at 11:29
source share



All Articles