Branch from local workspace

后端 未结 4 417
逝去的感伤
逝去的感伤 2020-12-24 01:47

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

4条回答
  •  抹茶落季
    2020-12-24 02:42

    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"
    

提交回复
热议问题