Git v2 is available for GitHub repositories. To have Git v2 turned on for your organization, reach out to Omni support.
How it works
When a conflict happens
A conflict happens when both of the following are true:- The Omni branch has edits that haven’t been pushed to its pull request.
- The pull request branch has commits that you haven’t pulled into the Omni branch, and those commits change the same parts of the files as your edits.
What Omni does
Omni leaves the pull request branch as it is. To give you a place to resolve the conflict, Omni commits its version of the model to a separate branch in your repository, called the conflict branch. You resolve the conflict in a pull request from the conflict branch into your branch, called the conflict pull request.The conflict branch
The conflict branch is namedomni/<branch>/<commit>:
<branch>is the name of the Omni branch, which is also the pull request branch in git.<commit>is the first seven characters of the SHA of the last commit Omni pulled from that branch.
add-revenue-measures branch creates a branch such as omni/add-revenue-measures/3f9c2ab.
The conflict branch starts at the last commit Omni pulled, so it contains the edits made in Omni since then. Each commit Omni makes includes an Omni-Branch-Version trailer, which Omni uses to recognize its own commits later.
What you see in the model IDE
When Omni finds a conflict, the IDE shows one of these messages:
Until the conflict is resolved:
- The branch header shows a warning button named Resolve conflicts. Its tooltip reads Your edits conflict with the pull request. Click to resolve.
- The push and pull arrows open the same dialog as the Resolve conflicts button. Pushes and pulls are paused until the conflict is resolved.
- The branch’s options menu has a Resolve conflicts… item.
What you see in GitHub
- A new branch. The conflict branch appears in the repository.
- The sync check on your pull request. On the next commit to your pull request, the sync check reports
Omni holds edits that conflict with this PR. The end of the message depends on whether Omni has published its version:- Published - The message links to the conflict pull request, or to GitHub’s page for opening it, with
resolve them in Omni's pull request. - Not published - The message ends with
push them from the IDE to open a pull request that resolves them.
- Published - The message links to the conflict pull request, or to GitHub’s page for opening it, with
Resolve the conflict in GitHub
1
Open the conflict dialog
In the model IDE, click Resolve conflicts in the branch header. A dialog titled Your edits conflict with the pull request opens.
2
Click Resolve in git
Click Resolve in git. Omni pushes its current version to the conflict branch and opens GitHub in a new tab.
- If the conflict branch has an open pull request, that pull request opens.
- Otherwise, GitHub’s page for opening a pull request opens. The base is your branch, the compare branch is the conflict branch, and the title and description are filled in. The title is
Merge Omni's edits to model '<model>' into <branch>. Click Create pull request.
3
Resolve the conflicts
Resolve the conflicts on the pull request, either in GitHub’s conflict editor or by committing a resolution to the conflict branch from your own git client. For each conflict, keep Omni’s edit, git’s change, or a combination.
4
Merge the pull request
Merge the conflict pull request into your branch. Merge commits and squash merges both work. You can delete the conflict branch after the merge.
After the conflict pull request merges
When the conflict pull request merges, Omni records that git resolved the conflict. In the model IDE, the Resolve conflicts button goes away and the pull arrow shows that there are changes to pull. To pull the resolution into the Omni branch:1
Pull the resolution
In the model IDE, click the pull arrow. Omni pulls the resolved commit into the branch.
- If you saved no edits since the conflict, the IDE shows The conflict was resolved in git, and the branch now matches the pull request.
- If you saved more edits since the conflict, Omni merges those newer edits with the resolution. The IDE shows Pulled the changes in git into Omni’s edits; push to update the pull request.
2
Optional: Push newer edits
If you saved edits after the conflict, click the push arrow to send them to the pull request.

