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?
Right-click on the file in the Pending Changes List, choose Undo.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With