TFS: submit changes done locally in one branch to another branch
Solution 1:
This functionality is provided using tfpt unshelve /migrate
. To use it, follow these steps:
- 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.