From the course: Visual Studio Tools for Azure DevOps

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Create a branch

Create a branch

From the course: Visual Studio Tools for Azure DevOps

Start my 1-month free trial

Create a branch

- [Instructor] One nice feature of Git is its easy branching and merging tools. We've been working with Master, the repository's main branch. On the Visual Studio status bar, you can see the Git repository and the current branch. When a team member wants to build a new feature or experiment with new ideas, that's a good use case for making another branch. That's as easy as clicking here and choosing New Branch. This branch will be based on Master. I'll give this a new name, then click on the Create Branch. I also want to check out the branch so that I can start working with the code in the new branch. Now in this dropdown, I've got two branches available. I can switch back to Master, or I can switch to Experiment. That's how quick and easy it is to switch between the two of them. Now let's go make some changes. I'll go over here, I'll add a new file to the source. I'll add Demo.css, commit my changes, Commit and Push. It's going to push the branch. Another way you can push the branch…

Contents