← Plugins

Branch+

Arifin7installs

Start new workspaces from origin/main or the remote branch you last picked for the project, and clean up stale local branches.

$ paseo plugin add finly/branch-plus
Branch+ screenshot 1Branch+ screenshot 3Branch+ screenshot 4Branch+ screenshot 5Branch+ screenshot 6Branch+ screenshot 7Branch+ screenshot 8Branch+ screenshot 9

Branch+ makes new worktree workspaces start from the remote branch instead of whatever branch your main checkout has checked out. By default that is origin/main. When you pick another remote branch in New workspace's Base picker, Branch+ remembers it for that project and uses it next time. It also adds a settings screen to clean up stale local branches.

Setup

  • Requires Paseo 0.16.0 or later. Tested on 0.17.5 and 0.18.2.
  • No configuration needed. Once installed, it works in New workspace for every Git project.
  • Available in English, Chinese (Simplified), Japanese, Korean, Spanish, French, Portuguese (Brazil), Russian, and Arabic.

New workspace base

  • Default: when you open New workspace with worktree isolation, Branch+ sets the base to the project's remembered branch, or to origin/main when nothing is remembered.
  • Remember a pick: choosing a remote branch such as origin/dev in the Base picker uses it for that workspace and remembers it for the project. Choosing origin/main again clears it. The pick is saved as soon as you make it, even if you don't create the workspace.
  • Your pick wins: if you change the base before Branch+ applies its default, your choice is kept.
  • Skipped: local isolation, change request bases, and projects that aren't Git repositories.
  • Missing branch: if the remembered branch no longer exists on the remote, Branch+ uses origin/main instead.

Remembered bases

A settings tab listing every project whose remembered base is not origin/main, with the remembered branch. Reset one project, the selected ones, or all of them (with a confirmation). A reset project starts from origin/main again.

Branch cleanup

A settings tab listing the local branches of every Git project, one collapsible card per project, with Expand all and Collapse all.

  • Remote branch deleted: branches whose upstream is gone, labeled Merged into origin/main or Not found in origin/main (maybe squash-merged).
  • Local only (never pushed): branches that never had an upstream, labeled as merged into origin/main or with the number of commits not in origin/main.
  • Can't be deleted: branches checked out in any worktree (the main checkout included) or still on a remote. They are shown faded with the reason and can't be selected.
  • Each deletable branch shows its last commit subject and date.
  • Nothing is preselected. Select branches one by one, per project, or all at once.
  • A confirmation lists every selected branch before deleting. Before deleting each branch, Branch+ checks again that it can be deleted, and the result lists any branch that was skipped or failed.
  • Only local branches are deleted (git branch -D). Remote branches are never touched.

Command Center

Two items, Remembered bases and Branch cleanup, open the matching settings tab. They are listed under the branch-plus section, which Paseo shows when a host is active, for example inside a workspace.

Data access

  • Reads the projects of your Paseo host and runs Git in each project's folder to list remote and local branches. Deletes a local branch only after you confirm.
  • Remembered bases are saved in plugin settings on the Paseo host. They are per user and per host: shared by your devices connected to that host, not by other people or other hosts.
  • Contacts no service outside Paseo and doesn't fetch from remotes itself.

Limits

  • Remote branches are only as fresh as the last fetch. Branch+ reads the remote-tracking branches already in the repository. Paseo fetches and prunes origin in the background, so a branch deleted on the remote can still be used as a base, or not yet show as Remote branch deleted, until the next fetch.
  • Only remote branches are remembered. Picking a local-only branch uses it for that workspace, and a notice says it won't be remembered.
  • Repositories without origin/main keep Paseo's default base unless you've picked a remote branch for the project. In branch cleanup, no branch in them shows as merged.
  • Merge detection only recognizes branches merged with a merge commit or fast-forward. Squash-merged and rebase-merged branches show as not found in origin/main.
  • Archived workspaces: deleting the branch of an archived Paseo workspace means that workspace can no longer be restored. The confirmation reminds you of this.

Related plugins

Browse all plugins →