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.
With Git v2, Omni works like a local clone of your git repository.

How it works

  • An Omni branch is your local copy of a pull request branch. You pull commits from git into it, and you push your edits from it to git. See Pull and push changes.
  • The shared model is Omni’s copy of the base branch. Omni pulls the base branch into the shared model when a pull request merges or someone commits directly to the base branch. See Merges and the base branch.

Why use Git v2

Use Git v2 to:
  • Catch problems before they merge. Omni checks each pull request and reports the result in GitHub, next to your code review. You can require the checks to pass before a pull request merges. See Pull request checks.
  • Adopt validation on a model that already has issues. The validation check counts the issues a pull request adds, and leaves out the issues the shared model already has. See Validation.
  • Keep the shared model in sync with the base branch. Omni pulls merged pull requests and direct commits into the shared model, and leaves commits it hasn’t pulled unchanged. See Merges and the base branch.
  • Choose when changes move between Omni and git. Commits stay in git until you pull them into an Omni branch, and your edits stay in Omni until you push them. See Pull and push changes.
  • Resolve conflicts in GitHub. When edits in Omni conflict with commits in git, you resolve them in a pull request, and Omni keeps your resolution. See Resolve conflicts.

Supported git providers

GitHub

Next steps