Skip to main content
POST /v1/agents/runtime/{runtime_id}/git/checkout
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