Seamerge

Resolve Git merge conflicts on a Mac

A merge conflict happens when two branches changed the same lines of a file in different ways. Git cannot know which version you want, so it stops and leaves the decision to you. This guide shows what Git leaves behind and how to resolve it in Seamerge, a free three-way merge tool for macOS.

Updated 21 November 2026 · Seamerge 0.7.0

What Git leaves behind

A merge that runs into a conflict ends like this:

$ git merge feature
Auto-merging src/Checkout.java
CONFLICT (content): Merge conflict in src/Checkout.java
Automatic merge failed; fix conflicts and then commit the result.

git status lists the file under “Unmerged paths” as “both modified”. In the file itself, Git has written both versions between conflict markers:

<<<<<<< HEAD
    static final int SHIPPING_FEE = 5;
=======
    static final int SHIPPING_FEE = 7;
>>>>>>> feature

Above ======= is your side, the branch you are on; below it is the branch you merge in. You can edit the markers away by hand, but they do not show what the line was before either change, so you cannot tell who changed what. A three-way merge tool shows that version too, the base. What is a three-way merge? explains why it matters.

Open the conflicts in Seamerge

If Git does not open Seamerge yet, set up git mergetool first; it takes one step in the app. Then run:

git mergetool

Seamerge opens the first conflicted file in four panes: A, the incoming side; the base, the version both sides started from; B, your side; and below them the result, which is what Git saves.

A merge in Seamerge with six conflicts left: the open conflict on the shipping fee, ringed in red in the decision column and marked in all three panes, between blocks taken from A or from B automatically.
A block only one side changed is already taken; the open conflict is ringed in red.

A block that only one side changed is already decided: its change is in the result, and you can still change it. A block that both sides changed differently stays open, ringed in red, until you decide. The toolbar counts the open conflicts.

Decide block by block

  1. Go to the next open conflict with ⌥⌘↓, or the previous one with ⌥⌘↑. In a pane above the result, N and ⇧N do the same.
  2. Read A and B. The base shows what both sides changed from.
  3. Take one side in the decision bar: Use A ⌘1, Use Base ⌘2, Use B ⌘3, or Use None ⌘6 to take nothing.
  4. Take both sides with Use A Then B ⌘4 or Use B Then A ⌘5.
  5. Write it yourself. Press Return in a pane above the result, or choose Merge ▸ Resolve Manually, and edit the block in the result. A later choice in the decision bar replaces what you typed, so choose first and type after.
  6. Resolve many at once with Merge ▸ Resolve All Open Conflicts with A or with B. Blocks you edited stay as they are.
  7. Change your mind with ⌘Z. Undo covers typed text and decisions together.

For long merges, Hide Base ⌥⌘B compares A and B directly, and the setting Go to Next Conflict After Choosing moves on after each decision.

Finish the merge

When every file is resolved, commit the merge:

git commit

To give up on the merge instead and go back to where you were before it, run git merge --abort.

Rebase, cherry-pick and stash

Conflicts from git rebase, git cherry-pick, git revert and git stash pop open the same way with git mergetool. Afterwards, go on with git rebase --continue, git cherry-pick --continue or git revert --continue. After git stash pop, the stash stays in the list until you drop it.

In a rebase the roles turn around: Git replays your commits onto the other branch, so the side Git calls yours is the branch you rebase onto, and the incoming side is your own commit. In Seamerge, A then holds your commit and B the branch you rebase onto.

Without Git

File ▸ Merge Files… merges three files that you choose yourself, as A, Base and B. Three files dropped on the welcome window or on the Seamerge icon in the Dock fill the same sheet.