1GH-LABEL-CLONE(1) GitHub CLI manual GH-LABEL-CLONE(1)
2
3
4
6 gh-label-clone - Clones labels from one repository to another
7
8
9
11 gh label clone <source-repository> [flags]
12
13
14
16 Clones labels from a source repository to a destination repository on
17 GitHub. By default, the destination repository is the current reposiā
18 tory.
19
20
21 All labels from the source repository will be copied to the destination
22 repository. Labels in the destination repository that are not in the
23 source repository will not be deleted or modified.
24
25
26 Labels from the source repository that already exist in the destination
27 repository will be skipped. You can overwrite existing labels in the
28 destination repository using the --force flag.
29
30
31
33 -f, --force
34 Overwrite labels in the destination repository
35
36
37
39 -R, --repo <[HOST/]OWNER/REPO>
40 Select another repository using the [HOST/]OWNER/REPO format
41
42
43
45 # clone and overwrite labels from cli/cli repository into the current repository
46 $ gh label clone cli/cli --force
47
48 # clone labels from cli/cli repository into a octocat/cli repository
49 $ gh label clone cli/cli --repo octocat/cli
50
51
52
53
54
56 gh-label(1)
57
58
59
60 Jun 2022 GH-LABEL-CLONE(1)