dcloud git commits create

Commit 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>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --branchRequired

    string

    The branch to commit to; it must exist, except the default branch of an empty repository

    Constraints: 1-255 chars

  • --messageRequired

    string

    The commit message

    Constraints: 1-2000 chars

  • --expected-oidOptional

    string

    Refuse (409) unless the branch is still at this commit, so an edit cannot overwrite a push

    Constraints: /^[0-9a-f]{40}$/

  • --changesRequired

    array 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.