Sign Up

Git

POST/git/add

Add files to the Git staging area

Request Body

application/json

Add files request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/git/add" \  -H "Content-Type: application/json" \  -d '{    "files": [      "string"    ],    "path": "string"  }'
Empty
GET/git/branches

Get a list of all branches in the Git repository

Query Parameters

path*string

Repository path

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/git/branches?path=string"
{  "branches": [    "string"  ],  "current": "string"}
POST/git/branches

Create a new branch in the Git repository

Request Body

application/json

Create branch request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/git/branches" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "path": "string"  }'
Empty
DELETE/git/branches

Delete a branch from the Git repository

Request Body

application/json

Delete branch request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/git/branches" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "path": "string"  }'
Empty
POST/git/checkout

Switch to a different branch or commit in the Git repository

Request Body

application/json

Checkout request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/git/checkout" \  -H "Content-Type: application/json" \  -d '{    "branch": "string",    "path": "string"  }'
Empty
POST/git/clone

Clone a Git repository to the specified path. Defaults to strict TLS verification; set insecure_skip_tls=true to skip verification for self-signed or private-CA Git servers.

Request Body

application/json

Clone repository request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/git/clone" \  -H "Content-Type: application/json" \  -d '{    "path": "string",    "url": "string"  }'
Empty
POST/git/commit

Commit staged changes to the Git repository

Request Body

application/json

Commit request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/git/commit" \  -H "Content-Type: application/json" \  -d '{    "author": "string",    "email": "string",    "message": "string",    "path": "string"  }'
{  "hash": "string"}
GET/git/config

Get a Git config value at the given scope (null when unset)

Query Parameters

key*string

Config key (e.g. user.name)

path?string

Repository path (required for local scope)

scope?string

Config scope: global (default), local or system

Response Body

application/json

curl -X GET "https://example.com/git/config?key=string"
{  "value": "string"}
POST/git/config

Set a Git config key/value at the given scope

Request Body

application/json

Set config request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/config" \  -H "Content-Type: application/json" \  -d '{    "key": "string",    "value": "string"  }'
Empty
POST/git/config/user

Configure the Git user name and email at the given scope

Request Body

application/json

Configure user request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/config/user" \  -H "Content-Type: application/json" \  -d '{    "email": "string",    "name": "string"  }'
Empty
POST/git/credentials

Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.

Request Body

application/json

Authenticate request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/credentials" \  -H "Content-Type: application/json" \  -d '{    "password": "string",    "username": "string"  }'
Empty
GET/git/history

Get the commit history of the Git repository

Query Parameters

path*string

Repository path

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/git/history?path=string"
[  {    "author": "string",    "email": "string",    "hash": "string",    "message": "string",    "timestamp": "string"  }]
POST/git/init

Initialize a new Git repository at the specified path

Request Body

application/json

Init repository request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/init" \  -H "Content-Type: application/json" \  -d '{    "path": "string"  }'
Empty
POST/git/pull

Pull changes from the remote Git repository

Request Body

application/json

Pull request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/git/pull" \  -H "Content-Type: application/json" \  -d '{    "path": "string"  }'
Empty
POST/git/push

Push local changes to the remote Git repository

Request Body

application/json

Push request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/push" \  -H "Content-Type: application/json" \  -d '{    "path": "string"  }'
Empty
GET/git/remotes

List the remotes configured in the Git repository

Query Parameters

path*string

Repository path

Response Body

application/json

curl -X GET "https://example.com/git/remotes?path=string"
{  "remotes": [    {      "name": "string",      "url": "string"    }  ]}
POST/git/remotes

Add (or overwrite) a remote in the Git repository

Request Body

application/json

Add remote request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/remotes" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "path": "string",    "url": "string"  }'
Empty
POST/git/reset

Reset the current HEAD to the specified state

Request Body

application/json

Reset request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/git/reset" \  -H "Content-Type: application/json" \  -d '{    "path": "string"  }'
Empty
POST/git/restore

Restore working tree files or unstage changes

Request Body

application/json

Restore request

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/git/restore" \  -H "Content-Type: application/json" \  -d '{    "files": [      "string"    ],    "path": "string"  }'
Empty
GET/git/status

Get the Git status of the repository at the specified path

Query Parameters

path*string

Repository path

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/git/status?path=string"
{  "ahead": 0,  "behind": 0,  "branchPublished": true,  "currentBranch": "string",  "detached": true,  "fileStatus": [    {      "extra": "string",      "name": "string",      "staging": "Unmodified",      "worktree": "Unmodified"    }  ],  "upstream": "string"}