Skip to main content
POST /v1/agents/runtime/{runtime_id}/git/push

Authentication

Pass auth_token for a forge such as GitHub or GitLab. It is sent to the remote as an HTTP Basic Authorization header for that single push, is not written into the repository, and never appears on the git command line inside the sandbox. username and password do the same thing for a remote that needs a real account. When both are supplied, auth_token wins. Omit all three to push with whatever credentials the repository already has — for example an SSH key.

Refspecs

remote and branch-style arguments are positional in git, so supplying refspec without remote pushes to origin. A refspec has the form <source>:<destination>, for example refs/heads/main:refs/heads/main or the shorthand main. Requires egress — see network access.

Parameters

Response