Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring TFVC pending changes to new branch using VS2010?

I currently have a fairly large number of pending changes in TFS. Now, I would like to create a new branch (based on the server version of the code that is the basis for those pending changes) and transfer my pending changes to the new branch.

Google told me about shelving, which I already knew of but don't see how it could help me since I want to transfer the changes to a new base path.

Is there an easier way to transfer the pending changes than manually checking out and copying each file?

like image 778
user Avatar asked Dec 30 '11 10:12

user


People also ask

How do I get rid of pending changes in TFS?

Right-click on the file in the Pending Changes List, choose Undo.

How do I undo a pending change?

To undo a few of your pending changes To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change. In the Undo Pending Changes dialog box, make sure the changes you want to undo are selected, and then choose Undo Changes.


1 Answers

It's possible to shelve, create a branch and then unshelve to this new branch, by using TFS Power tools:

I found the following passage here:

...then use the tfpt unshelve command with the /migrate switch:

tfpt unshelve /migrate /source:$/TeamProject/Main /target:$/TeamProject/Beta

like image 85
pantelif Avatar answered Oct 05 '22 23:10

pantelif