Branch Lens and branch search
Branch Lens opens above the footer Git chip. Branches are on the left. A preview of the selected branch is on the right. Switching happens in the same panel, one git command at a time, and each command is echoed to the pane.
Click the chip to open it. Click it again, or press Esc, to close it. The chip appears when the tab folder is inside a Git repository.

The list
| Group | What is in it |
|---|---|
| Current | The branch you are on |
| Local | Your other local branches. The base branch is first, with a base tag |
| Remote · origin | Remote branches with no local branch tracking them |
| Merged · safe to delete | Local branches merged into the base, or whose upstream is gone after their pull request merged |
The base branch is the remote’s default (origin/HEAD), or else main, master, trunk or develop. Each row shows how far the branch is behind the base (red, left) and ahead of it (green, right), its pull request and a CI dot, then the last commit and when it was made.
Pull requests come from your forge connections, the same list as @work: your pull requests and the ones waiting for your review. A branch with none shows No PR.
The tabs across the top are All, Local, Remote, Open PRs and Mine. Mine is a branch whose last commit has your git config user.email.
Type in the filter box to narrow the list:
| Type | Keeps |
|---|---|
wsl | branches whose name, last commit or pull request title has the text |
# | branches with a pull request |
#98 | the branch for pull request 98 |
@dependabot | branches whose last commit author has the text |
⌘+R (Ctrl+R) runs git fetch --all --prune and reads the list again. The header shows when the last fetch ran.
The preview
The checked-out branch shows its upstream and how many commits are waiting to be pushed, the pull request card with its checks, and three views. Tab moves between them:
- Commits: the commits that are not on the base. A commit that is not on the upstream yet shows Not pushed.
- Files: the files that differ from the base, with lines added and removed.
- Diff vs main: the diff, cut at 1,500 lines.
Working tree lists your uncommitted changes. Click a path to insert it at the prompt cursor. Nothing runs.
On the checked-out branch, the bar at the bottom has Stash (⌘+S), New branch from here (⌘+N), and Insert git push. Insert puts git push -u origin <branch> (or git push when it has an upstream) in the prompt. Termorq never pushes.
Switch
Select a branch and press Enter, or double-click it. A remote branch becomes a local branch that tracks it (git switch --track origin/<branch>). ⌘+Enter (Ctrl+Enter) opens the branch in a worktree in a new tab instead.
With nothing uncommitted, the switch runs at once. With uncommitted changes, Branch Lens asks first:

| Key | Choice | What runs |
|---|---|---|
| 1 | Stash and switch | git stash push -m "termorq: <this branch>", then the switch. The stash comes back on its own when you switch back to this branch |
| 2 | Open in a worktree instead | git worktree add <folder>-<branch> <branch> and a new tab there. Nothing changes here |
| 3 | Commit as WIP, then switch | git commit -a -m "chore(wip): save before switching". A local commit, never pushed. Undo it later with git reset --soft HEAD~1 |
| 4 | Carry changes over | A plain git switch. Unavailable when the other branch changed one of your files |
Untracked files stay where they are with every choice. Enter picks the recommended choice. Esc goes back to the list.
A stash only comes back when the working tree is clean after the switch. If it does not apply cleanly, it stays in git stash list, and Branch Lens says so.
Progress and after the switch
Each step shows its command and how long it took. When it is done, After the switch flags a changed lockfile, with a button that puts the install command in the prompt (pnpm install, npm install, yarn install, bun install, go mod download, poetry install, uv sync or bundle install). A changed Cargo.lock is flagged because the next build recompiles. A pull request with failing checks or changes requested is flagged with Open PR.

Run in background closes the panel. The switch carries on and the chip updates when it lands.
Delete merged branches
Delete on the merged group, or ⌘+Backspace, asks first and then runs git branch -d for each one. -d keeps a branch git does not see as merged, which is common after a squash merge. Branch Lens lists those and does not force them. Run git branch -D <branch> yourself if you are sure.
Branch search
⌘+⇧+H (Ctrl+Shift+H on Windows and Linux) opens a search box over the terminal. Press it again, or Esc, to close it.

- Letters match in order, so
fzhfindsfeat/fuzzy-history. Local branches come first. - The highlighted branch opens up to show its recent commits and pull request. → opens it in Branch Lens with the full log.
- Commits mentioning lists commits whose message has the text, on any branch. Enter switches to the branch git found it on.
- When nothing has that exact name, Create branch … from main and switch runs
git switch -c <name> origin/main. ⌘+N does the same. - ⌘+1, ⌘+2 and ⌘+3 switch to your three most recent branches. With the box empty,
-switches to the previous one, likegit switch -.
With uncommitted changes, the highlighted branch says whether they can come with you:

| Key | Does |
|---|---|
| Enter | Switch and carry your changes. When that would conflict, the four choices open |
| ⌥+Enter (Alt+Enter) | Stash, then switch |
| ⌘+Enter (Ctrl+Enter) | Worktree in a new tab |
| ⌘+O (Ctrl+O) | Open the pull request |
Type # to list pull requests for this repository, sorted by what needs you: review requests and changes asked of you first, then approved ones with passing checks, then your drafts. #97 jumps to one.

WSL tabs
In a WSL tab, git runs inside that distribution through the tab’s shell session, the same way as pull request checkout. No host git command runs. The time of the last fetch is not shown there.
Related
The prompt describes the chip. Forges connects the pull requests. Keyboard shortcuts lists Ctrl+Shift+H.