dcloud git commits createCommit file edits to a branch
IAM git:PushRepositoryChanges stateAsks before it deletes (-y skips)
Synopsis
dcloud git commits create repoId --branch branch --message message --changes changes [flags]Arguments
<repoId>Requiredstring
Also accepted as
--repo-id. Constraints: uuid
Flags
--branchRequiredstring
The branch to commit to; it must exist, except the default branch of an empty repository
Constraints: 1-255 chars
--messageRequiredstring
The commit message
Constraints: 1-2000 chars
--expected-oidOptionalstring
Refuse (409) unless the branch is still at this commit, so an edit cannot overwrite a push
Constraints: /^[0-9a-f]{40}$/
--changesRequiredarray of json
The file changes, applied in order: `upsert` writes `content` (the whole file, UTF-8) to `path`, `delete` removes `path`
Example
dcloud git commits create repoId --branch example --message example --changes '["example"]'Generated from the API description, the same one the API checks requests against and the CLI is built from.