Create a new Git branch

VSTS | TFS 2018 | TFS 2017


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


Users of TFS 2015 and previous will not have the Branches tab in the Code view. When using those versions, you can 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 portal

  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.


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