Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i create a branch in Visual Studio Team Services?

I would like to create a branch on TFS in Visual Studio Team Services.

Is this possible and if so how can i do this?

like image 640
caa Avatar asked Aug 24 '16 08:08

caa


People also ask

How do I create a new branch in Visual Studio?

From the Git menu, select New Branch. In the Create a new branch dialog box, enter a branch name. For branch naming details, see Special characters in branch and tag names. In the Based on section, use the drop-down list to choose whether you want to base your new branch off an existing local branch or a remote branch.

How do I create a new branch in TFS?

In Source Control Explorer, right-click the folder or file that you want to branch, point to Branching and Merging, and then click Branch. The Branch dialog box appears. In the Target box, modify the location and name for the new branch.

Can we create branch in TFS?

The development isolation TFS branching strategy involves one or more development branches. These are kept separate from the main. Each development branch is a complete copy of the main branch. Development branches are built and tested, then code is promoted to the main branch.

How do I create a new branch?

New Branches The git branch command can be used to create a new branch. When you want to start a new feature, you create a new branch off main using git branch new_branch . Once created you can then use git checkout new_branch to switch to that branch.


1 Answers

If you're using Team Foundation Version Control, you can use the Source Explorer in Visual Studio to create a new branch and then checkin your changes (see Branch folders and files).

If you're using Git you can use the Branches page in the Team Explorer to create a new branch (see Create work in branches). For more advanced scenarios you can also use the command line.

like image 84
Wouter de Kort Avatar answered Sep 19 '22 22:09

Wouter de Kort