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
- Click New Branch or right-click on a commit
- Enter the branch name
- Choose the starting point (current HEAD, commit, or another branch)
- 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
- Right-click the branch
- Select Rename
- Enter the new name
Deleting a Branch
- Right-click the branch
- Select Delete
- Confirm deletion
TIP
Use Force Delete for branches not fully merged.
Pushing a Branch
- Right-click the local branch
- Select Push
- Choose the remote (usually origin)
Comparing Branches
- Select two branches (
Cmd/Ctrl + click) - Right-click and select Compare
- View the diff between branches
Tracking Remote Branches
- Find the remote branch in the Branches panel
- Double-click or right-click and select Checkout
- Axis creates a local tracking branch automatically
