Search code examples
visual-studiotfstfvc

Adding a parent for a child branch in TFS


In TFS, I have created a branch (say Child) from another branch (see below image for the hierarchy). enter image description here

I need to change the hierarchy to include another one more parent in-between (see the below image). enter image description here

How can I do that?? Thanks in advance.


Solution

  • You can right-click a branch in the source control explorer and pick "Reparent". Before you can reparent, you must ensure that the intermediate branch exists and that there is a branch relationship between the different branches. In the worst case you'll need to do a baseless merge from the commandline using tf merge /recursive /baseless

    The process is explained here: