dcloud git repositories fork

Fork a repository of the organization

IAM git:CreateRepositoryChanges state

Answers 202 with the new repository (private, `forkedFromRepoId` set); every branch and tag is copied by a job, whose progress is `importState`. Needs git:PullRepository on the parent.

Synopsis

dcloud git repositories fork repoId --name name [flags]

Arguments

  • <repoId>Required

    string

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

Flags

  • --nameRequired

    string

    The new repository, in the same organization

    Constraints: 1-100 chars, /^[A-Za-z0-9][A-Za-z0-9._-]*$/

  • --descriptionOptional

    string

    One line about the fork; the parent's description when absent

    Constraints: max 500 chars

  • --tagsOptional

    map of string

    Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them).

    Constraints: key=value

Example

dcloud git repositories fork repoId --name example

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