Skip to content
mergecat
Works offline

The Branches page lists every local branch and the remote branches that have no local copy, and tells you for each one whether it is pushed, behind, merged or in conflict with the base branch. It reads the local clone and never checks out, merges or deletes a branch. Open it from Branches in the navigation.

The Branches page with filters, the status of each branch against origin and against main, conflicts and age

The Branches page: one row per branch.

The header says how many branches there are, which base branch and remote they are compared with, and when the repository was last fetched.

Columns

ColumnWhat it shows
BranchThe name; current for the branch checked out in the working tree, base for the base branch. Below: the upstream it tracks (tracks origin/x), “local branch”, or “remote branch, no local copy”.
Last commitSubject, author, age and short SHA of the newest commit.
vs origin↓ commits to pull and ↑ commits to push, or in sync, not on origin (never pushed), upstream deleted (usually after the pull request was merged) or on origin only. Below: when the remote branch was last updated here, by a fetch or a push.
vs base↓ commits behind and ↑ commits ahead of the base branch, merged when everything of the branch is already in the base, and conflicts when merging it into the base would conflict. Below: the number of files in conflict, or “merges cleanly”.
AgeDays since the last commit. Orange from 60 days, red from 90 days.

Hover over conflicts to see the files that would conflict.

Base branch

The picker in the header sets the branch that vs base, merged and conflicts are computed against. It starts on the default branch of the repository (usually origin/main). Choose a release branch, for example, to see which feature branches would conflict with it.

Conflict check

mergecat checks each branch that has diverged from the base with git merge-tree, which computes the merge without touching your working tree or your branches. The check needs Git 2.38 or later; with an older Git the page says so and the column shows “conflict check needs Git 2.38” instead.

The chips above the list filter the rows and show how many branches match:

FilterBranches shown
AllLocal branches and remote branches without a local copy.
Local onlyBranches that exist only on this computer.
Not on originNever pushed, or deleted on the remote.
MergedEverything of the branch is already in the base branch.
ConflictsMerging the branch into the base branch would conflict.
Older than 60 daysLast commit more than 60 days ago.
Older than 90 daysLast commit more than 90 days ago.

The search box (Filter by name, author…) matches the branch name and the author and subject of the last commit.

Merged and the age filters are a quick way to find branches to clean up; mergecat leaves the deletion to you.

Fetch

Fetch runs git fetch --all --tags --prune: it updates the remote branches and the tags from every remote, and removes the remote branches that were deleted on the server. Your local branches and your working tree are not changed. Fetch uses your Git credentials (your credential helper); mergecat does not ask for a password. After a fetch the branch pickers and tag chips of the whole app are up to date.

Row actions

The ⋯ button at the end of each row opens:

ActionWhat it does
Copy nameCopies the branch name.
Show historyOpens the History page on this branch.
Create tag at head…Opens New tag on the newest commit of the branch.
Create pull request…Opens New pull request with this branch as the source. Needs a connection; not available for the base branch.

Next steps