tfs 2010 – merge shelveset to branch

If you want to merge a shelveset, to a different branch, you can merge you shelveset if you have tfs powertools (download) installed.

Next you open a command prompt and CD to your local tfs directory:

C:\Users\Administrator>d:

D:\>cd dev\tfs\

When you got your working directory ready, then you execute following command:

D:\dev\tfs>tfpt unshelve “shelvesetname” /migrate /s
ource:”$/myproject/R1.0/” /target:”$/myproject/Dev”

Where “shelvesetname” is well, the shelveset name you want to merge, if you want to use someone else’s shelveset, you can use “shelveset;domain\username”.

Source is where the original shelveset files are placed and target is to where you want to merge them.