I was developing team project and suddenly realised that i\'ve made so many changes, that i need create branch.
I\'ve never used branching in TFS and when i saw \"B
Robaticus's answer is correct, but I wish to add some detail that I haven't seen explicitly stated elsewhere. I just had to do this and it acted like it was working but it wasn't. It would pretend to automerge or copy, but no files were created, and no checkouts were made in the new branch. An error should be raised, but none appears.
It turns out that the quotes around the source and target are optional if the paths have no spaces, but they are required if spaces exist.
Here's a template:
tfpt unshelve MyShelfsetName /migrate "/source:$/MyPath/My Path with spaces/MyBranch" "/target:$/MyPath/My Path with spaces/MyOtherBranch"