Quickstart: Folder Merge
It's easy to imagine a project folder with several files in it. Now imagine that you did work in the folder on two different days and saved it in two different Git branches. Or imagine a team, where you started the folder, copied it to two teamates, and they helped you improve it.
In any case, you will have the following: an older folder, that is considered the ancestor, and two newer folders. All three need to be recombined. In Beyond Compare this is called a Folder Merge session. If you want to download the files used in this example, rightclick and SaveAs this link:
Here are the 26 empty files you have set up in a project folder:
Here are the modifications your teammates made:
The easiest way to get your three folders into the above view is to drag them with the mouse. But you could also load them by browsing from the three manilla-folder icons. Or, in github, this view can open up from a
git mergetoolrequest at the command line.
At this point, assuming every teammate has been good about saving their work, you have three different versions of the project. In the middle, is your version, the ancestor, where every file size is zero bytes. On the left and right, open your teamates folders. The file sizes show which ones have been modified. Here are the meanings of some of the symbols in this view:
(Top) contains a difference (Bottom) binary-same (files are byte-for-byte identical)
You need to tell Beyond Compare where to merge to. If you understand version control workflow, you will see that it makes sense to merge to Left or Right, not to "other"
As soon as you press the grey "Merge!" key at the top, Beyond Compare will irreversibly (there is no undo!) combine your files. But how can we know what is about to happen? Check out the margin of your viewer:
These arrows show the prediction of which side are going to get incorporated as soon as you press "Merge!"
Beyond Compare is unsure what to do here because File A was changed by both of your teamates. Beyond Compare requests that you manually choose a side using your mouse.
I encourage you to download and make your mistakes on the downloadable sample data above. After you unzip and play with that sample folder, go to the Scooter Software site. There is a good description of FolderMerge on page 30 of their official Beyond Compare documentation.