Skip to content

Branches

Branches let you work on different features or fixes in isolation. Each branch is an independent line of development.

Viewing Branches

The branches panel shows:

  • Local branches - Branches on your machine
  • Remote branches - Branches on remote repositories
  • Current branch - Highlighted with a checkmark

Open the Branches panel in the sidebar to see all branches

Creating a Branch

  1. Click New Branch or right-click on a commit
  2. Enter the branch name
  3. Choose the starting point (current HEAD, commit, or another branch)
  4. Click Create

Switching Branches

Double-click a branch to switch to it Or right-click and select Checkout

WARNING

You may need to commit or stash changes before switching branches.

Renaming a Branch

  1. Right-click the branch
  2. Select Rename
  3. Enter the new name

Deleting a Branch

  1. Right-click the branch
  2. Select Delete
  3. Confirm deletion

TIP

Use Force Delete for branches not fully merged.

Pushing a Branch

  1. Right-click the local branch
  2. Select Push
  3. Choose the remote (usually origin)

Comparing Branches

  1. Select two branches (Cmd/Ctrl + click)
  2. Right-click and select Compare
  3. View the diff between branches

Tracking Remote Branches

  1. Find the remote branch in the Branches panel
  2. Double-click or right-click and select Checkout
  3. Axis creates a local tracking branch automatically

Released under the MIT License.