Act on a development app's repository
One action per call: discard, stage, unstage, commit, checkout, merge, rebase, revert, cherry, pull or push. Commits live in the container and die with it unless pushed.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Query Parameters
Value in
- "production"
- "preview"
- "development"
Request Body
application/json
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/api/workspaces/string/apps/string/git" \ -H "Content-Type: application/json" \ -d '{ "action": "discard", "paths": [ "string" ] }'{ "ok": true, "branch": "string", "branches": [ "string" ], "shallow": true, "writable": true, "ahead": 0, "behind": 0, "changes": [ { "code": "string", "path": "string", "staged": true, "add": 0, "del": 0 } ], "commits": [ { "sha": "string", "subject": "string", "author": "string", "date": "string" } ]}Read the working tree of a development app: branch, changes and recent commits GET
Reads the repository inside the running container by pod exec, so it is ground truth rather than the deploy record. Returns `{ok:false, reason}` when the app has no repo, no pod, or no git.
Read a patch from a development app's repository GET
With no `sha`, diffs the working tree. `path` narrows it to one file. Large patches come back with `truncated: true`.