Skip to content

Guides

Branch and merge

Try an idea on its own branch, then merge it into main when it's ready.

Before you start

You need a mounted project. If you don't have one yet, do your first project first.

Your first project

Creating

The mini map sits across the top of the project screen. It shows your branch under the branch it came from. Its "branch" button is always there. "update" appears when the branch yours came from has moved on, and "merge" once you've committed on your branch.

The mini map, here with all three buttons: "update", "merge" and "branch".
  1. Click "branch" in the mini map.
  2. Type a name for your branch in "Name".
  3. In "target branch", choose the branch your work will merge into, usually main. It's set to the branch you're on at first.
  4. Click "Create". Filament switches you to the new branch.

You can also right-click any branch in "Branches", in the project's sidebar, and choose "Branch…".

Already have pending changes? The "Create a branch" window offers to move them to the new branch, and ticks it for you.

Working

You're on your new branch already: your project folder shows it.

  1. Change your files.
  2. Commit as usual.

To come back to it later, right-click it in "Branches", in the project's sidebar. Choose "Checkout" to make it the branch your project folder shows.

Checking your work

Before you merge, look through what your branch changed: click "Changes" in the project's sidebar.

Review and merge

Merging

Has main changed since your branch started? Click "update" in the mini map first, to bring those changes into your branch.

  1. In "Branches", in the project's sidebar, right-click your branch.
  2. Choose "Merge…".
  3. Check "Into:". It's always your branch's target, so you can't change it here.
  4. Leave "Close source branch" ticked, unless you'll keep working on the branch.
  5. Click "Merge".

Your work is now on the target branch. If "Close source branch" was ticked, your branch is now closed, and if you were on it, Filament switches you to the target branch.

The "merge" button in the mini map opens the same window.

If Filament expects conflicts, "Merge" stays grayed out and the window offers "Resolve with Filament AI".

Conflicts