Checking out a branch
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
- Open the Command Palette
- Run the
Git: Checkout
command (typecheckout
and press Enter) - Type the name of your branch to filter it
- 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