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.

Explore the basic branch actions: PowerShell

Explore the basic branch actions: PowerShell - Visual Studio Tutorial

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

Start my 1-month free trial

Explore the basic branch actions: PowerShell

- [Instructor] Branching code is a popular technique with version control systems. A branch represents an independent line of development. It's been used in the past for version branches, future branches, and other major milestones. It's simpler than that in Git. This first command is called git branch dash dash list. Make sure you don't have those extra spaces there. I'll remove those. So, that shows all of the current branches in my local repository, there's only one. To create a branch type in git branch and then, the name of your new branch. I'll call mine b1. You see how quick and easy that was? Well, let's prove that it's there. The Git branch command is incredibly lightweight, making branching operations nearly instantaneous. It's easy and fast to switch between branches which encourage work flows that branch and merge often. I've seen teams that branch and merge multiple times a day. Let's make another branch, it's…

Contents