Hygiene and workflow
Branch hygiene and workflow
2 min read
A repository used by a team piles up branches: the ones already merged through a merge request, the abandoned ones, the ones that fell far behind the main branch and the ones that started from the wrong place. This area of the manual brings together Versora's tools for keeping that list in order and for always working the same way: where each branch starts from, where it goes and how a version is released.
Nothing here deletes work without you seeing it first. Every operation shows the plan or the list of what's going to change, and almost all of them can be undone with Ctrl+Z. The exceptions (deleting a branch on the server, changing a merge request's target, pushing a version) are pointed out on each page.
| Page | What you'll find |
|---|---|
| Branch cleanup | Delete in one go the merged branches, including those merged by squash and rebase, and the ones whose upstream was removed. Local ones and, if you want, on the remote too. |
| Branches review | The screen with every branch, local and remote, compared with a base: last commit, ahead/behind, merge, upstream, MR, predicted conflict, owner and age. Filters, bulk actions, keyboard and the "stale" badge. |
| Archive branches | Hiding a branch without deleting it, the ARCHIVED section and automatic archiving by rule. |
| Bulk rebase | Updating in one go the branches that fell behind the base, with a prediction of each one's exact conflict, without a checkout. |
| Fork point | Seeing in the graph the commit a branch started from. |
| Page | What you'll find |
|---|---|
| Repository workflow | The four presets (trunk-based, GitLab flow, release branches and Gitflow), the WORKFLOW section, the suggestion when you open a repository and the Start, Finish and Promote actions. |
| Workflow health | The warnings about a branch outside the workflow, wrong source or target, forgotten release, hotfix that didn't come back, lagging environment, and the action that fixes each one. |
| Gitflow | The GITFLOW section: initialize, start and finish feature, release and hotfix, with the usual gitflow.* keys. |
| New version and changelog | Computing the next version from the commits, writing CHANGELOG.md, updating the manifests, creating the commit and the tag, pushing and creating the Release on GitLab or GitHub. |
In Preferences (Ctrl+,):
- Branch hygiene: "stale" threshold, badge in the panel, fork point marker, automatic archiving and the button that opens the branches review.
- Workflow: the open repository's workflow and the suggestion when you open a repository.
- Versions and commits: version tag prefix, changelog file and language (besides the message rules, described in Conventional Commits).
The list of protected branches, which no tool in this area touches, is in Preferences ›
Checks and can also come from the server, from the team's .versora.yml and from the company
policy. See Protected branch.
For IT
The administrator can hide this area's Preferences pages or make them read-only, and define protected branches for every repository. See Policy keys and The .versora.yml file.