How to create a Branch from TFS project (from a labelled version)

33,612

Solution 1

Just create an empty new team project in the same Project Collection. Then you can use the standard Branch feature in Visual Studio to branch over the exact labeled version you want.

The Create Project wizard doesn't have this feature, but the end result is exactly what you want. You can enter the target branch name as $/Other-Project/TargetFolder

Branch from label after project creation

Solution 2

After talking with an MS rep I have discovered that this is a straight up BUG! You cannot create a branch using VS2013 and TFS2012. You will either need to have VS2012 or Team Explorer 2012 to do this on your machine. This is absolutely ridiculous. Nice job MS.

Share:
33,612
Muthukumar Palaniappan
Author by

Muthukumar Palaniappan

Updated on July 09, 2022

Comments

  • Muthukumar Palaniappan
    Muthukumar Palaniappan almost 2 years

    How can I create a branch from a TFS project based on a specific label?

    I need to create branch from a TFS project that too only from a labelled version. I could see in the new project creation wizard that I can choose the project as a branch to an existing one. However I could only do that for the latest version of main branch.

    There is no option provided to branch from a label.

  • Muthukumar Palaniappan
    Muthukumar Palaniappan over 10 years
    I tried this. When I try to branch that to the new project, it has thrown TF10169: unsupported pending change attempted on team project folder $/newBranch
  • Muthukumar Palaniappan
    Muthukumar Palaniappan over 10 years
    Also I am trying to branch "Nordics-Trainers" to a new pRoject. Thats my requirement..
  • jessehouwing
    jessehouwing over 10 years
    If the team project already has a branch in it, you must branch over each branch individually. You can't branch over to a new project from the root level.
  • Muthukumar Palaniappan
    Muthukumar Palaniappan over 10 years
    Ok.. My root project(ex: Nordics-Trainers) has no branches. I achieved in this way. I created a new project(ex:Nordics-Branches) and branched source to a folder under new project(ex: Target is "$\Nordics-Branches\Br01").Because I could not directly branch to a project. Similarly i can create as many branches as different folders.
  • Piotr Kula
    Piotr Kula over 8 years
    just found out the hardway.. overwrote my main files when checking in from "branch" what a bollache!