With SourceLair you can work on any branch of your project’s Git repository. To create and checkout a new branch you can use the Command Palette or the terminal.

To checkout an existing branch take a look at Checking out a branch

Creating a branch via the Command Palette

  1. Open the Command Palette
  2. Run the Git: Create new branch command (type create branch and press Enter) Git: Create new branch in the Command Palette

  3. Type the name of your new branch Git branch list

  4. Click on Create branch or hit Enter when it is selected

Creating a branch in the terminal

To create and checkout a branch in the terminal, type the following command, just like you would do on your computer, locally:

git checkout -b name-of-your-branch