dcloud git repositories forkFork a repository of the organization
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>Requiredstring
Also accepted as
--repo-id. Constraints: uuid
Flags
--nameRequiredstring
The new repository, in the same organization
Constraints: 1-100 chars, /^[A-Za-z0-9][A-Za-z0-9._-]*$/
--descriptionOptionalstring
One line about the fork; the parent's description when absent
Constraints: max 500 chars
--tagsOptionalmap 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 exampleGenerated from the API description, the same one the API checks requests against and the CLI is built from.