How-to guides

How to compare two branches

Open Compare with, pick the main thread or another branch, and read the diff. Green is only in this pane, red is removed or only in the other.

Comparing puts two branches of one conversation into a single diff, so you read the differences instead of rereading both. One note before the steps: side-by-side compare is a Pro and Team feature, and the Free plan doesn't include it.

The two-way compare works like this:

  1. Open the branch you want to compare from. Direction matters, because the diff is described relative to the pane you're standing in.
  2. Open "Compare with".
  3. Under "Compare this pane with", pick your target: the Main thread or another branch.
  4. Read the diff. Green means "Added or only in this pane". Red means "Removed or only in other". Text in neither color is shared by both.

That's the entire loop.

The part that trips people up is direction. Green and red are defined relative to "this pane", so comparing A against B gives you the mirror image of comparing B against A. Same two branches, flipped colors. If a diff reads backwards from what you expected, you almost certainly opened it from the other side; start again from the branch whose additions you want to see in green.

The shared text earns its keep too. Long stretches the branches agree on stay plain, so you're skimming for color rather than proofreading two transcripts. In a pair of branches that diverged late, the first screen or two will be almost entirely plain, and that tells you something useful by itself.

Two-way compare is one pane against one target. For more than two at a time, reach for different tools: an Explore run has its own side-by-side board ("Compare explore variants"), and the Merge Board is the full-page surface for lining up several branches and synthesizing them.

On the phone, Compare has its own spot in the mobile app's navigation, so this isn't a desk-only trick.

Once the diff settles which branch has the better answer, the natural next step is merging it back into the thread you'll continue in. That flow has its own preview and confirm steps, covered in "How to merge a branch back".

Related reading