Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gravixlayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

from gravixlayer import GravixLayer

client = GravixLayer()
runtime = client.runtime.create(template="python-3.14-base-small")

runtime.git.clone(
    url="https://github.com/octocat/Hello-World.git",
    path="/home/user/repo",
)

# Local branches (default)
r = runtime.git.branch_list("/home/user/repo")
print(r.stdout)

# All branches: local + remote-tracking
r = runtime.git.branch_list("/home/user/repo", scope="all")
print(r.stdout)

runtime.kill()

Parameters

ParameterTypeRequiredDescription
repository_pathstringYesPath to the repository root inside the runtime
scopestringNolocal (default), remote (git branch -r), or all (git branch -a)

Response

FieldTypeDescription
successbooleanWhether the git command completed successfully
exit_codeintegerProcess exit code from git
stdoutstringBranch listing from git
stderrstringStandard error from git
errorstringError message when the operation fails