
Merging two edited copies of the same file is where most comparison tools fall short. A plain two-way diff can show that the copies differ, but not who changed what. Beyond Compare Pro's Text Merge solves that with a three-way view that brings in the original version both copies started from. Once you understand how the panes relate, conflicts stop feeling scary and become a series of small, clear decisions.
Why Three Sources Beat Two
Imagine you and a colleague both edited config.yaml. You changed the timeout, and they changed the log level. A two-way comparison shows two differences, but it cannot tell whether your colleague removed your timeout or you removed theirs.
Add the original file, called the base or ancestor, and the picture clears up. The tool sees that the timeout changed only on your side and the log level only on theirs. Both edits can be kept automatically. Only lines that both people changed in different ways need a human decision. Those are the real conflicts.
The Four Panes
| Pane | What it holds |
|---|---|
| Left | One edited version, often yours |
| Base (center) | The common ancestor both versions started from |
| Right | The other edited version, often theirs |
| Output (bottom) | The merged result that gets saved |
Colors tell you what happened to each block:
- Changes made only on one side are shown in that side's color and can be taken into the output automatically.
- Conflicts, where both sides changed the same lines, are flagged in a stronger color.
- Unchanged text appears plain in all panes.
Starting a Merge
From the Home view
Choose Text Merge from the Home view.
Load the left file, the right file and, in the center, the base file.
Set the output file name, or let it overwrite one of the inputs if you are sure.
From Git or another version control tool
Most people never open the merge view by hand. If you have set Beyond Compare as your mergetool, Git fills in all four files when you run git mergetool after a conflict. Our Git setup guide covers the configuration.
A Calm Routine for Resolving Conflicts
Let the automatic merges happen
When the view opens, non-conflicting changes from both sides are usually already in the output. Scan the output pane once to confirm it looks sensible.
Jump to the first conflict
Use the Next Conflict button rather than scrolling. Conflicts can hide far apart in a long file, and the button makes sure you visit every one.
Read all three versions
Look at the base first, then each side. Ask what each person was trying to do. Often one side fixed a bug and the other renamed a variable, and the right answer combines both.
Choose a side or write your own
Toolbar buttons and right-click options let you take the left block, the right block, or both in either order. If neither is quite right, click into the output pane and type the correct text. The output is a full editor.
Repeat until no conflicts remain
The status bar counts remaining conflicts. When it reaches zero, give the whole output a final read.
Save and test
Save the output, close the window, and run your tests or open the file in the program that uses it. A merge that looks right can still break a build.
Tip: If a conflict is too tangled to fix line by line, take one whole side, save, and redo the other person's change by hand. It is often quicker and safer.
A Worked Example
Say the base version of a settings file contains three lines: a timeout of 30, a log level of "info" and a retry count of 3. You change the timeout to 60. Your colleague changes the log level to "debug" and also changes the retry count to 5. At the same time, you change the retry count to 4.
When the merge view opens, the timeout line shows your change only, so it moves into the output automatically. The log level line shows your colleague's change only, so it also merges without help. The retry count is different: both of you changed it from the same starting value to different numbers. That line is marked as a conflict.
Now you decide. Perhaps your colleague raised it to 5 to deal with an unreliable server, and you raised it to 4 for a similar reason. Picking 5 covers both cases, so you take their block. Or you might talk to them and settle on a new value, which you type straight into the output. Either way, the decision takes seconds because the view shows exactly what each person did.
Merging Whole Folders
Pro also includes Folder Merge, which applies the same three-way idea to entire directory trees. It compares left, base and right folders, copies files changed on one side, and lists files changed on both for you to open in Text Merge. This helps when you maintain a customized copy of a project and need to bring in a new release from the original authors.
When Not to Merge by Hand
Some files are poor candidates for line-by-line merging. Generated files, such as lock files or compiled output, are better rebuilt from their sources after the merge. Binary files, such as images or office documents, cannot be merged line by line at all, so pick one version and redo the other change in the right program.
Tips for Cleaner Merges
- Set the right file format. The format controls syntax highlighting and what counts as an unimportant difference. Choose it from the Format menu if detection guesses wrong.
- Ignore whitespace changes. Rules can treat indentation or trailing spaces as unimportant so they do not create fake conflicts.
- Merge often. Small, frequent merges produce fewer and simpler conflicts than one huge merge at the end of a project.
- Use word wrap. Version 5 can wrap long lines, which makes prose and long configuration values much easier to compare.
Pros
- The base pane shows who changed what, not just that lines differ
- Non-conflicting edits from both sides merge automatically
- The output pane is a full editor for custom fixes
- Folder Merge brings the same logic to whole directories
Cons
- Available only in the Pro edition after the trial
- Needs a base file, which you may not have outside version control
- Very large files with many conflicts still take patience
Frequently Asked Questions
Is three-way merge available in the Standard edition?
No. Text Merge and Folder Merge are Pro features. You can try them free during the 30-day trial.
What is the base file in a merge?
It is the common ancestor that both edited versions started from. Comparing against it shows which side made each change.
Can I edit the merged output directly?
Yes. The output pane is a full text editor, so you can type your own fix when neither side is right.
Does Beyond Compare merge folders as well as files?
Yes. Pro includes Folder Merge, which compares left, base and right folders and lists conflicting files for review.
How do I find every conflict in a long file?
Use the Next Conflict button on the toolbar. It moves straight to each conflict so none are missed.
Conclusion
Three-way merge turns confusing conflicts into a series of clear, small decisions. Load the left, base and right versions, let the automatic merges happen, then step through each conflict with the toolbar and choose a side or write your own fix. Save the result, test it, and you are done. It is a Pro feature, so use the trial to see how much time it really saves you before buying a license.
