dcloud git repositories set-push-mirror

Copy every push to a remote outside Deutsche Cloud (branches and tags)

IAM git:ConfigurePushMirrorChanges stateAsks before it deletes (-y skips)

Fast-forward only and nothing is deleted on the remote: a branch that moved there on its own is listed in `pushMirror.rejectedRefs` with `lastStatus: failed` instead of being overwritten. Pushes once at once, then after every push, merge or console edit. The token is never returned.

Synopsis

dcloud git repositories set-push-mirror repoId --url url --token token

Arguments

  • <repoId>Required

    string

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

Flags

  • --urlRequired

    string

    https URL of the remote repository, without credentials (https://github.com/acme/app.git)

    Constraints: 1-500 chars

  • --tokenRequired

    string

    A token allowed to push there (GitHub: fine-grained, Contents: write); stored sealed, never shown

    Constraints: 1-500 chars

Example

dcloud git repositories set-push-mirror repoId --url example --token example

Generated from the API description, the same one the API checks requests against and the CLI is built from.