Skip to main content

Git Push

POST 

/api/v1/git/push

Push the current model to a Git repository branch.

Three outcomes based on target branch state:

  • Branch does not exist → create and push (today's path).
  • Branch exists + expected_base_sha matches remote tip → fast-forward push.
  • Branch exists + expected_base_sha is None → 409 (today's UX preserved).
  • Branch exists + expected_base_sha mismatches → 409 with code "branch_moved".

Request​

Responses​

Successful Response