Git
/git/addAdd 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" }'/git/branchesGet a list of all branches in the Git repository
Query Parameters
Repository path
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/git/branches?path=string"{ "branches": [ "string" ], "current": "string"}/git/branchesCreate 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" }'/git/branchesDelete 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" }'/git/checkoutSwitch 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" }'/git/cloneClone 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" }'/git/commitCommit 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"}/git/configGet a Git config value at the given scope (null when unset)
Query Parameters
Config key (e.g. user.name)
Repository path (required for local scope)
Config scope: global (default), local or system
Response Body
application/json
curl -X GET "https://example.com/git/config?key=string"{ "value": "string"}/git/configSet 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" }'/git/config/userConfigure 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" }'/git/credentialsPersist 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" }'/git/historyGet the commit history of the Git repository
Query Parameters
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" }]/git/initInitialize 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" }'/git/pullPull 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" }'/git/pushPush 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" }'/git/remotesList the remotes configured in the Git repository
Query Parameters
Repository path
Response Body
application/json
curl -X GET "https://example.com/git/remotes?path=string"{ "remotes": [ { "name": "string", "url": "string" } ]}/git/remotesAdd (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" }'/git/resetReset 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" }'/git/restoreRestore 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" }'/git/statusGet the Git status of the repository at the specified path
Query Parameters
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"}