With SourceLair you can work on any branch of your project’s Git repository. To switch to an existing branch (or to checkout a branch in Git terminology) you can use the Command Palette or the terminal.

To create and checkout a new branch take a look at Creating a branch

Checkout a branch via the Command Palette

  1. Open the Command Palette
  2. Run the Git: Checkout command (type checkout and press Enter) Git: Checkout in the Command Palette

  3. Type the name of your branch to filter it Git branch list

  4. Click on Checkout or hit Enter when it is selected

Checkout a branch in the terminal

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

git checkout name-of-your-branch