Merge a Git branch
Merge the named branch into the current one, as a merge commit unless it fast-forwards. Refused while another merge, rebase, revert or cherry-pick is in progress. If the merge fails, it is aborted, the call fails, and the error carries git's report. 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"
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
application/json
curl -X POST "https://example.com/api/workspaces/string/apps/string/git/merge" \ -H "Content-Type: application/json" \ -d '{ "branch": "string" }'{ "ok": true, "output": "string"}Unstage Git files POST
Take the given paths out of the index; their changes stay in the working tree. 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.
Rebase onto a Git branch POST
Replay the current branch's own commits on top of the named branch, rewriting them. Refused while another merge, rebase, revert or cherry-pick is in progress. If the rebase fails, it is aborted, the call fails, and the error carries git's report. 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.