From the course: Visual Studio: Source Control with Git and GitHub

Unlock the full course today

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

Basic branch actions: VS

Basic branch actions: VS - Visual Studio Tutorial

From the course: Visual Studio: Source Control with Git and GitHub

Start my 1-month free trial

Basic branch actions: VS

- [Instructor] To create a new branch in Visual Studio, go to Team Explorer, Branches, and we're going to create a new branch based on the only the branch that I have, which is master, so I'll right click here and choose New Local Branch From. The other way to get to this area of screen is to go to New Branch, and I'll give my new branch a name. To create the branch you'll click on this Create Branch button. If you want to check out the branch at the same time make sure there's a check in this checkbox. That makes sense, that's a standard action, you create a new branch and you want to start working and making changes in that branch, so we'll both of those at the same time. And keep your eye right here, you'll see that new branch shows up and the new branch is in bold, that means that's the checked out branch. To check out master, right click, choose Checkout. Remember, in Git, checkout just means to switch branches. I'll…

Contents