Skip to content
Versora

Manual

Hygiene and workflow

Branches review

10 min read

On this page

The Branches review is a screen that shows every branch in the repository, local and from all remotes, in a single table, compared with a base (usually main or develop). It answers in one go the questions of whoever looks after the repository: what's already merged, what fell behind, what has been stale for months, what has an open merge request, what will conflict and whose each branch is. The bulk actions start from here: archive, rebase, clean up and see the fork point.

The screen takes up the tab's central area, in place of the graph. Nothing changes in the repository just by opening it.

Open the branches review

Where to find it

  • Menu: right-click the LOCAL header in the left panel › Review branches…
  • Menu: right-click the LOCAL header › Review stale branches… (opens already filtered to the stale ones)
  • Palette (Ctrl+P):
    • "Review branches" ("Every branch against a base: merge, stale, outdated, upstream, MR, owner");
    • "Review stale branches";
    • "Rebase outdated branches…" (opens filtered to the local branches behind the base);
    • "Show archived branches" (opens showing only the archived ones).
  • Preferences: Preferences › Branch hygiene › Branches review › Open.
  • ARCHIVED section of the panel: the "Review the archived branches" button.

Step by step

  1. Open the screen. While Versora reads the branches, "Analyzing branches…" appears. Then the progress text at the top shows the steps that continue in the background: "Checking merged merge requests…", "Checking which branches are merged…" and "Predicting conflicts… 12 left".
  2. Check the Base. "Automatic (main)" uses develop when the repository has Gitflow and, in other cases, the remote's default branch. To compare with another branch, choose it in the list (Local branches and Remote branches groups). The choice is remembered in this repository.
  3. Read the summary and use the numbers as filters (see The summary).
  4. Refine with the filters and sort by clicking a column title.
  5. Check branches and use the bulk actions, or right-click a row.
  6. To close, click the X ("Close the branches review (Esc)") or press Esc. The refresh button ("Analyze again") reads everything again.

The summary

The summary row counts the branches that aren't archived. Each number is a button: one click turns on the matching filter, and a second click turns it off.

NumberFilter it turns on
N branches(total, not a filter)
mergedMerge › Merged
staleActivity › Stale
outdatedBase › Outdated
upstream goneUpstream › Gone
with an open MRMR › Open
with conflictsConflict › With conflicts
archivedArchived › Only them

A number at zero is disabled.

FilterValuesDefault
"Filter by name, owner or commit" fieldFree text. Esc in the field clears the text; ↓ takes you to the table.empty
TypeAll, Local, RemoteAll
ActivityAll, Active, StaleAll
MergeAll, Merged, Not mergedAll
BaseAll, Outdated, Up to dateAll
UpstreamAll, Gone, Ahead, Behind, No upstreamAll
MRAll, Open, Merged, No MRAll
ConflictAll, With conflicts, No conflictsAll
OwnerAll, Mine and each person with the count, for example "Ana Souza (4)"All
ArchivedHide, Show, Only themHide
SignalsAll, With signalsAll

Clear filters resets everything to the default. Mine shows the branches whose owner or last commit author is you, by your git identity (the email; with no email, the name). When no branch passes the filters, "No branches match these filters." appears.

The columns

The columns appear in this order. Click a title to sort (▲ ascending, ▼ descending).

ColumnWhat it shows
BranchThe name and the badges: current (checked out), base (the comparison branch), stack 2/3 (position in a stack), archived and the protection: main ("Main branch: never cleaned up or bulk rebased"), protected ("Protected by the pattern release/*") or worktree ("In use in the worktree …").
Last commitWhen the branch's last commit was (the full date is in the tooltip) and the stale badge ("No commits in more than 90 days").
Base ↑↓How far the branch is ahead of and behind the base. Hover over it: "3 commits main doesn't have · 12 commits from main the branch doesn't have". unrelated means "No history in common with main".
MergeThe merge state in the base (table below).
UpstreamThe relation to the tracked remote branch: up to date, the numbers to push and pull ("origin/feature/x: 2 to push, 0 to pull"), gone ("origin/feature/x no longer exists on the remote") or no upstream ("The branch doesn't track any remote branch (it was never pushed)").
MRThe branch's open merge request, with draft when that's the case, or "!42 merged". Hover over it to see the title, target and author; a click opens the MR review.
ConflictThe conflict prediction with the base: "Merge into main without predicted conflicts", "Merging into the base would conflict in 2 files:" and the list, or "Conflict preview not calculated yet".
SignalsAlerts the other columns don't show on their own (see Signals).
OwnerWho has the most commits of their own on the branch. Hover over it to see the main authors ("Ana Souza: 8 commits") and the author of the last commit.
AgeSince when the branch has existed: "Created in this clone on 10/03/2026" (from the reflog) or "First own commit on 09/28/2026".

States of the Merge column

BadgeMeaning
Merged"The branch's commits are already in main".
Squash !42"!42 (title) was merged and the branch's content is already in main (squash or rebase)". Requires the server registered with a token.
In target"The upstream is gone and the branch's content is already in main".
MR + new commits"!42 was merged, but the branch has commits after it".
MR, content differs"!42 was merged, but part of the branch's content isn't in main".

The merge criteria are the same as in Branch cleanup.

The Signals column brings together alerts from two sources: hygiene itself and the workflow, when the repository has a workflow chosen.

SignalWhen it appears
only hereStale local branch with commits that aren't on any remote: "Stale with 3 commits that aren't on any remote: if this folder is lost, the work is lost."
divergedThe local branch and the upstream moved in different directions: "the next push will be rejected".
MR conflictsThe open merge request would conflict with the base.
Workflow warningsOutside the workflow, wrong source, forgotten release etc. See Workflow health.

The Signals › With signals filter shows only the branches with some alert.

Check branches and bulk actions

Step by step

  1. Check the branches with each row's box ("Select feature/login"), or:
    • click a row to select only that one;
    • Ctrl+click to add or remove a row;
    • Shift+click to check a range.
  2. The Actions on the selected branches bar shows "3 selected" and "18 of 25 branches" (how many the filters let you see).
  3. Choose the action.

Bar actions

ActionWhat it does
Select allChecks all visible branches.
Select staleChecks at once every branch with the "stale" badge.
Archive (N)Archives the checked ones. See Archive branches.
Unarchive (N)Unarchives the checked ones that are archived.
Rebase N branches onto main…Opens the bulk rebase plan with the checked ones.
Clean up merged…Opens Branch cleanup with this screen's base as the target.
Show fork pointCloses the screen and marks the branch's fork point in the graph.
Clear selectionRemoves all the checks.

A row's menu

Right-clicking a row (or several checked ones) shows:

  • Show in graph (also by double-clicking or Enter);
  • Check out feature/login (disabled on the current branch; on a remote branch, it follows the remote branch checkout rules);
  • Show fork point;
  • Archive (N) or Unarchive (N) (the current branch is never included);
  • Rebase N branches onto main…, when there are local branches behind the base;
  • Open the merge request !42, when the branch has an open MR;
  • Clean up merged…, when any of the chosen ones is merged;
  • More branch actions…, which opens the branch's full context menu, the same as in the panel.

Shortcuts

With the focus on the table:

KeyAction
↑ ↓, Home End, PageUp PageDownMove through the rows.
Shift+↑ / Shift+↓Extend the selection.
SpaceCheck or uncheck the branch.
Ctrl+ASelect all.
EnterShow in graph.
AArchive the checked ones (or the current row's). If they're all already archived, it unarchives.
RRebase the checked ones.
FShow the fork point of the current row's branch.
Ctrl+F or /Go to the search field.
EscClose the screen.

Ctrl+A, A, R, F and the search can be changed in Preferences › Keyboard shortcuts, where they appear with the context "In the branches review". See Shortcuts.

Suggestion to rebase the outdated branches

When there are local branches behind the base, a bar appears: "4 local branches are behind main and can be updated with a rebase."

  • Plan the rebase… opens the bulk rebase plan.
  • Show filters the table to them.
  • Dismiss closes the bar.

The same plan opens with the Rebase outdated (N)… button at the top ("Plan the rebase of the local branches that are behind main (with a conflict preview before doing it)").

Stale branches

A branch with no commits for longer than the threshold gets the stale badge. The default is 90 days, the same definition GitHub uses. In the table, the badge's tooltip says "No commits in more than 90 days"; in the left panel, it includes the date: "Stale: last commit 4 months ago (07/12/2026). Threshold: 90 days".

Where to find it

  • In the table: the badge in the Last commit column, the stale number in the summary, the Activity › Stale filter and the Select stale button.
  • In the left panel: the badge also appears in the LOCAL and REMOTE sections (it can be turned off).
  • Menu: LOCAL header › Review stale branches…; palette: "Review stale branches".

Step by step to review the stale ones

  1. Open Review stale branches….
  2. Adjust the threshold in the footer, in Stale after [90] days, if you want another cutoff.
  3. Click Select stale.
  4. Uncheck the ones that still matter and choose Archive or, for the ones already merged, Clean up merged….
OptionWhereWhat it doesDefault
Consider stale after (days)Preferences › Branch hygiene (also in the screen's footer, "Stale after")Days without a commit before the badge appears. Accepts 1 to 3650.90
Show the "stale" badge in the panelPreferences › Branch hygieneShows the badge in the LOCAL and REMOTE sections of the left panel.on
  • Stale after [N] days: the badge threshold (the same as the preference).
  • The summary of the automatic archiving rule: "Automatic archiving is off" or "Archives automatically: stale for 90 days and merged", with Configure… (opens Preferences › Branch hygiene) and Apply now…. See Archive branches.
  • The analysis time: "25 branches analyzed in 840 ms".

What Versora does in git

The screen only reads the repository:

bash
# ahead/behind the base and the upstream, for every branch in a single read (git 2.41+)
git for-each-ref --format="%(refname) %(ahead-behind:origin/main) …" refs/heads refs/remotes
# owners: who has the most commits of their own (outside the base) on each branch
git log … ^origin/main
# conflict prediction of each branch with the base, without touching the working directory
git merge-tree --write-tree origin/main feature/login

With a git older than 2.41, the ahead/behind count is done branch by branch, more slowly. Recognizing squash and rebase through the merge request comes from the same analysis as the branch cleanup.

How to undo

The screen doesn't change anything on its own. The actions it triggers are undone as described on each one's page: archiving has Undo in the notice; bulk rebase and local deletion come back with Ctrl+Z.

Caveats and messages

  • "There's no base to compare with (no main, master or remote default branch). Choose a base above.": choose the base in the picker.
  • "The base origin/release/1.0 no longer exists. Choose another one.": the remembered base was deleted.
  • "The server's protected branch list didn't arrive (…); only the local list applies.": the server didn't respond; the local protection still applies.
  • "No server token: a squash done by the merge request isn't recognized (only what git sees).": register the token in Git servers.
  • "Only the first N branches were checked on the server.": in large repositories, the merge request query has a cap.
  • "Large history outside the base: some branches may lack an owner.": the owner count has a limit on the commits it reads; some branches end up without an owner.
  • "This repository has no branches.": there's no branch, local or remote, to show.
  • Preferences › Branch hygiene: stale threshold, badge in the panel, automatic fork point marker, automatic archiving and the review's Open button.
  • Preferences › Checks: the list of protected branches used in the protection badges.
  • The administrator can hide the Branch hygiene Preferences page or make it read-only through the policy (preferences_hidden / preferences_locked with the id hygiene), and add protected branches (protected_branches). See Policy keys.

See also