Skip to content

Versions and branches ​

A project keeps its history in two ways. A version is a pinned, named state of the model that you can come back to, compare with and branch from. A branch is a full copy of the project where you can change things without touching it, and which comes back through a merge. On top of both, the main project can be protected, so that every change arrives through a branch.

Versions ​

Pinning a version, comparing it, and opening an older one to read.

The version pill ​

At the bottom left of the canvas, next to the Tags button, is the version pill. It shows the name of the newest pinned version. When the model has changed since then, the pill says how much ("1 added"), and hovering it shows Changes since "name" with the counts of added, removed and changed elements and Pin a version to keep this state.

Click the pill to open the Versions panel. Its header has three buttons: Comparator, Change sets and Branches, and the Pin version button.

Pin a version ​

  1. Open the Versions panel and press Pin version.
  2. Type a name. If the project has a version format (see Creating a project, Versions tab), the field shows it, for example "Format: 1.0.0", and a name that does not match is refused.
  3. Press the tick next to the field, or Enter. The cross cancels.

The new version appears at the top of the list, under Current. You can pin a version only when the model has changed since the last one.

Pinning is what keeps a state. The project also saves itself automatically, but unnamed saves are cleared out over time; a pinned version stays. That is why branches and change sets both start from a pinned version.

There is no way to unpin or delete a version in the app: once pinned, it stays in the list.

View an older version ​

Click a version in the list. The canvas shows the model as it was then, with a bar at the top: the version's name and date, read only, and Back to current. Nothing can be changed in this view. Press Back to current to return.

Compare ​

  • The compare button on a version's row opens Compare versions: that version against the current state (or against the version you are viewing). It lists what was Added, Changed and Removed, with tabs for Elements, Connections, Data flows, Sequence diagrams and Documentation. Open in comparator opens the same comparison in full.
  • Comparator in the panel's header opens the comparator, where you pick any two sides: versions, branches, the current state, or a branch's fork point. Click an element or a Magic flow to walk its changes.

Restore an earlier state ​

Restoring is done from the project's history, not from the version pill:

  1. Open Projects, select the project and press the clock button, Project history.
  2. The history lists the saves of the project, automatic ones and versions, with their date and author.
  3. Press Restore this version on the one you want and confirm.

Before restoring, the current state is saved as a snapshot, so a restore can itself be undone from the same list.

Branches ​

A protected project: what a branch would bring, first as counts, then on the diagram.

Create a branch ​

  1. Open the Versions panel and press Branches in its header. The branches screen opens: the list of branches on the left.
  2. Press New branch (the plus on the list).
  3. Type a name. If the project has a branch name format (Creating a project, Branches & merge tab), the field shows it and refuses names that do not match.
  4. Below the name the screen says which version the branch starts from: Branches from "name", the newest version. A branch always starts from the newest pinned version. If the project has changes that are not in any version yet, they stay on the project and do not go into the branch. If the project has no versions at all, pin one first.
  5. Press Create branch.

Work in a branch ​

Select a branch in the list and press Open branch. The editor opens the branch: a full copy of the project that you edit like the project itself. The branch's row in the version panel says "you are here". A branch is never protected, even when the project is.

Comparator on the branch's screen compares it with the project. The comparator shows the changes on the diagram: added, removed and changed elements and connections are marked, and clicking an element in the list takes you to it.

Working in a branch, then merging it into the project.

Merge a branch ​

Select the branch in the list (or press Review & merge in the version panel while you are in it). Its screen shows:

  • What lands in the project: how many elements the merge adds, removes and changes. "This branch would change nothing" means there is nothing to merge.
  • Whether the project has moved since the branch was made: "The project has not changed since this branch was created", or "The project has changed since this branch was created".
  • Conflicts. What the project and the branch changed independently is merged automatically. Where both changed the same thing, the merge asks: Needs your decision. For each conflict pick Keep the project's or Take the branch's; for something one side deleted, Keep it or Delete it; for an element the branch still points at, Bring back the element or Drop this reference. Only the person who created the branch can decide its conflicts.
  • Approvals, if the project requires them: "1 / 2 approved". People in the reviewer pool press Approve (and can Revoke approval). The author of the branch cannot approve it.
  • Discussion: comments on the branch.

When nothing is left to decide and the approvals are in, press Merge into project. If approvals are still missing, the button reads Merge Request and the screen says how many are needed. If the project changed while you were reviewing, the merge is recomputed and you are asked to check it again.

Abandon or delete a branch ​

  • Abandon branch keeps it readable in the list but it can no longer be merged.
  • Delete branch removes it and everything in it for good. Anything not merged is lost.

Each asks for confirmation.

Protect the main project ​

There is no separate "master" branch: the project itself is the trunk, and branches are made from it. Protecting the project makes it behave like a protected main branch.

  1. Open Projects, select the project, and open the Branches & merge tab.
  2. Tick Protect this project and press Save.

From then on:

  • The diagram is read-only for everyone, the owner included. The version pill shows a lock and Protected — work in a branch.
  • Changes to the model, to its documentation and through the API or MCP agents are refused on the project itself.
  • Reading, renaming the project and pinning versions still work.
  • Changes arrive by creating a branch, working in it and merging it back. With Required merge approvals set above 0, every merge also needs that many approvals from the Merge reviewer pool.

Untick Protect this project to lift the protection.

How versions connect to change sets ​

A change set hands a piece of work to a coding agent, and it is always specified against a pinned version: "Pin a version first — a change set has to stand on one that cannot move." When you create one you pick the version in Against version; its scope is the difference between that version and the previous pinned one. So the usual order is: change the model, pin a version, create a change set against it.