Daytona icon

Daytona

Manage Daytona sandboxes, snapshots, and volumes; run code and shell commands; drive a full Git pipeline; and manage the sandbox filesystem

Git → Checkout

AI-generated

Summary

Checks out a branch or commit in a Git repository inside a Daytona sandbox. Provide the sandbox ID, the repository’s absolute path within that sandbox, and the branch name or commit SHA; the operation sends the checkout request and returns a success record with those values.

Inputs

  • Sandbox ID (required) — ID of the sandbox containing the Git repository.
  • Path (required) — Absolute path inside the sandbox to the Git repository, such as /home/daytona/repo.
  • Branch (required) — Branch name or commit SHA to check out.

Output shape

A single item with a JSON object containing success: true, sandboxId, path, and branch.

The checkout changes the repository state inside the sandbox. Errors from the request fail the operation unless Continue On Fail is enabled.

Links

Discussion