Skip to main content
Git v2 is available for GitHub repositories. To have Git v2 turned on for your organization, reach out to Omni support.
These practices help you avoid conflicts between Omni and git on a repository that uses Git v2, and resolve them when they happen.

Pull before you edit, and push often

A conflict needs two things: edits in Omni that haven’t been pushed, and commits in git that Omni hasn’t pulled. Keep both small:
  • Pull first. When the pull arrow in the branch header shows commits waiting, pull them before you start editing.
  • Push when you finish a change. Edits that are already in the pull request can’t conflict with later commits.
See Pull and push for details.

Resolve each conflict in its conflict pull request

When a conflict happens, click Resolve conflicts in the model IDE and resolve it in the pull request that opens from the omni/<branch>/<commit> branch. See Resolve the conflict in GitHub for the steps. Omni tracks that pull request. When it merges, Omni records the conflict as resolved and keeps the resolution on the next pull and push.
  • Merge the conflict pull request. A closed pull request leaves the conflict unresolved.
  • Merge it soon after you resolve it. Omni blocks pushes while a resolution is on an open conflict pull request.

Leave Omni’s conflict branches as Omni pushed them

Omni identifies its own commits on a conflict branch to work out which edits the resolution already covers.
  • Add your resolution on top. Commit to the conflict branch or use GitHub’s conflict editor.
  • Keep the branch’s history. Avoid rebasing or force-pushing a conflict branch. After a rebase, Omni can’t identify its commit and the conflict shows again.
  • Delete the branch after the merge if you want to. Omni recognizes the resolution after the branch is deleted.

Pull after a conflict is resolved

After the conflict pull request merges, pull in the model IDE before you continue editing. Your next edits then start from the resolved version, which keeps them from conflicting with the resolution.

Use Omni agent skills when an AI agent edits the model

If you use an AI coding assistant such as Claude Code, Cursor, or Codex to change a model, install Omni’s agent skills. With the skills, the agent:
  • Reads the model from Omni. The omni-model-explorer skill finds the model’s topics, views, fields, and relationships, so the agent builds on what exists.
  • Writes its changes to an Omni branch. The omni-model-builder skill creates and edits views, topics, dimensions, measures, and relationships through Omni’s CLI.
Review the agent’s changes on the Omni branch, then push them to the pull request. Omni’s checks run on the pull request the same way they do for your own edits. See the Omni agent skills reference for the full list.

Keep Omni and dbt separate in monorepos

This practice from the git integration best practices also applies to Git v2. See Keep Omni and dbt separate in monorepos.

Next steps