Unshelving a shelveset created in one branch to another branch

When using TFVC, you'll find shelvesets very useful. Shelvesets allow you to effectively back up your local copy of the changes on to the server. Developers are multitasking almost all the time; you may start coding a change in one branch and then realize that the change actually needs to be applied in another branch. In this recipe, you'll learn how to shelve changes in one code branch and then migrate the changes over to another branch without checking in the changes into source control.

Getting ready

The FabrikamTFVC project has three branches, Dev, Main, and Prod, as illustrated in the following diagram. In this recipe, we'll create a shelveset shelvesetDev1 from the pending changes ...

Get Microsoft Team Foundation Server 2015 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.