Skip to main content
Switch the repository to a branch, tag, or commit.
ref_name accepts anything git checkout accepts as a ref — a branch, a tag, or a commit SHA. Checking out a commit or tag leaves the repository in a detached HEAD state, exactly as it would locally. Uncommitted changes that would be overwritten cause git to refuse the checkout, and the reason is returned in stderr.

Parameters

Response

Endpoint

POST /v1/agents/runtime/{runtime_id}/git/checkout