Create a new Git branch

Last Update: 1/23/2017

Team Services | TFS 2017

TIP

Need help creating a new Git branch in your local repo from Visual Studio or the command line? Visit the Git tutorial.

IMPORTANT

Users of previous TFS releases will not have the Branches tab in the Code view. Create a new branch in TFS from the Code view by selecting the drop-down next to the branch name and then selecting New branch.

Create a new branch from the web

  1. From your Team Project, select the Code view. Make sure you're working with the right repo, then select Branches.

    Branches nav view in the web interface

  2. Select the New branch button in the upper right corner of the page.

  3. In the Create a branch dialog, enter a name for your new branch, select a branch to base the work off of, and associate any work items.

    Create a branch with the new branch dialog

  4. Select Create branch.

TIP

You will need to fetch the branch before you can see it and swap to it in your local repo.