Pull Git changes
Fetch the current branch's upstream and fast-forward to it. Fails when the branches have diverged or uncommitted changes would be overwritten. A GitHub remote is read with the workspace's GitHub App installation; any other host is read without credentials. Works only on a development app: any other app answers 403 `read_only`. Runs git in the app's running container and returns its output.
Authorization
cloady Personal API token (cldy_…)
In: header
Path Parameters
Query Parameters
Value in
- "production"
- "preview"
- "development"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/workspaces/string/apps/string/git/pull"{ "ok": true, "output": "string"}Cherry-pick a Git commit POST
Apply the given commit to the current branch as a new commit. Refused while another merge, rebase, revert or cherry-pick is in progress. If the cherry-pick fails, it is aborted and the call fails. Works only on a development app: any other app answers 403 `read_only`. Runs git in the app's running container and returns its output.
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`.