Work together and merge with Git
When several people edit .erm files kept in a Git repository, Relio saves with small diffs and merges conflicts at the model level.
Preparing the repository
- Check that "Save in Git-friendly order" is on in Tools › Settings › General (it is on by default). It keeps list order fixed so Git diffs stay small, and the files still open in ERMaster.
- Add one line to the repository's
.gitattributesto keep line endings consistent.
*.erm text eol=lf merge=reliomerge=relio is used once you register the driver described below in "Model-level git merge".
History and comparison
Open File › Git history (or click the branch name in the status bar). The card at the top summarizes the change from the previous version (Tables +1 · Columns +2 ~3); click it to open the comparison view. Relio never writes anything to the repository.

Merging
When the same file was changed in two places, Relio merges by table, column and relationship — not by line. What each side added comes in automatically; you only choose where the same field was changed differently.
- Choose how to open the merge:
- A notice that an open file was changed outside Relio → Merge…
- A file with a Git merge conflict → File › Compare and merge › Resolve Git merge conflict…
- Another branch → File › Compare and merge › Merge with another branch version…
- In the merge tab, choose 1 current · 2 incoming · 3 both for each conflict. Press F8 to go to the next conflict.
- When no conflicts remain, press Ctrl+Enter to apply, then save. The whole merge is undone with a single undo. If it was a Git conflict, finish with
git addafter saving.

Model-level git merge
Register the command-line relio merge as a Git merge driver, and git merge and git rebase merge .erm files at the model level automatically. The driver is part of the Git configuration and does not travel with the repository, so everyone who merges must register it on their own PC.
Warning
If you did not turn on "Use relio from the command line" when installing, relio is not on your PATH, so register the full path of relio.exe (Copy command-line path in Help › About Relio), and always check that the path is right after registering it. The commands to register and check it are in Command line › Git merge driver.
More → Git and merging · Command line