Branches
What you can do
Section titled “What you can do”The Branches Pane lists the worktree’s branches, divided into “Local” and “Remote”. You can switch branches and delete local branches.
When to use it
Section titled “When to use it”Use it when you want to switch the branch you work on in a worktree. Also use it when you want to clean up local branches you no longer need.
Open and hide
Section titled “Open and hide”Press the Branches button on the right side of the top of the screen to open the Branches Pane. Press it again to hide the Pane. The button’s tooltip shows the shortcut, such as “Open Branches (⌘⇧B)” and “Hide Branches (⌘⇧B)”.
- The shortcut is ⌘⇧B (macOS) / Ctrl+Shift+B (Windows).
- The button appears only for worktrees in a Git repository. For other worktrees, the button does not appear and the shortcut does not work.
- When you open a Pane with a button or a shortcut, the Pane that was open closes.
- Drag the left edge of the Pane to change its width.
Switch branches
Section titled “Switch branches”Press a branch row to switch to that branch. “Switched to <branch name>.” appears. The row of the current branch is highlighted, and nothing happens when you press it.
Press a branch under “Remote” to switch to the local branch with the same name. If there is no local branch with the same name, a local branch that tracks the remote branch is created, and the worktree switches to it.
You cannot switch branches in the following cases.
- While the Agent is running or starting
- While the conversation is being compacted
- While the worktree is being removed
- When the worktree is in a detached HEAD state
- For a branch used by another worktree (the row shows “Used by another worktree: <path>”)
- When there are uncommitted changes (“There are uncommitted changes. Commit them before switching branches.” appears)
Press “Reload” at the top of the Pane to get the list again.
To work on a new branch, create a worktree. For creating worktrees, see Multiple Worktrees.

Delete a branch
Section titled “Delete a branch”- Press the delete button on the row of a local branch.
- In the confirmation, press “Delete”. Only the local branch is deleted. The remote branch is not deleted.
For a branch with commits that are not merged, a confirmation for force deletion appears. Press “Force delete” to delete it. The commits that are not merged are lost.
- You cannot delete the current branch or a branch used by another worktree.
- You cannot delete branches while the worktree is being removed.