Branching with VS Code

Learn how to create a branch using VS Code.

We'll cover the following

Creating a develop branch using VS Code

Now that the GitHub repo is cloned to your local desktop and you’ve made the first commit, you can start writing some code! Before writing the code though, you should always create a branch.

Using the command prompt:

  1. Change to the directory created with git clone.

  2. Type code . and press enter. VS Code will automatically open with the repo. VS Code will automatically recognize it’s opened in a folder as a Git repo. In the following screenshot, you can see VS Code is currently set to the master branch.

Get hands-on with 1200+ tech skills courses.