GH-LABEL-CLONE(1)
π gh-label-clone β ok so you can literally copy labels between repos
Bestie. Welcome to gh-label-clone(1), straight out of the GitHub CLI manual (the gh manual, iykyk). This is the page for the gh label clone command, and it does exactly one thing but it does it so well π
β¨ NAME β¨
gh-label-clone β clones labels from one repository to another. That's it. That's the whole vibe. π
πΈ SYNOPSIS πΈ
gh label clone <source-repository> [flags]
<source-repository> is the repo you're stealing from (affectionately), and then you slap on whatever [flags] you need. Slay. β¨
π¦ DESCRIPTION π¦
Okay so here's the tea: this command clones labels from a source repository over to a destination repository on GitHub. And by default? The destination repo is just the current repository you're sitting in. Convenient, honestly. π«Ά
All the labels from the source repo get copied over to the destination repo. But β and this is important, bestie β labels in the destination repo that don't exist in the source repo? They do not get deleted or modified. They stay right where they are. Untouched. Protected. Iconic behavior honestly. π
Labels from the source repo that already exist in the destination repo get skipped. Like, "we already have you at home" energy. π But if you do want to steamroll those existing labels in the destination, you can hit them with the --force flag. Use it with intention, diva. π
π OPTIONS π
-f,--forceβ overwrite labels in the destination repository. Yes, overwrite. It's giving main character energy. Only reach for it if you actually mean it π₯
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β pick a different repository using the[HOST/]OWNER/REPOformat. The brackets literally meanHOST/is optional, so don't panic. π§
π EXIT CODES π
Vibe check on how it went:
0β Successful execution β¨ (we ate)1β Error π (it's giving tragedy)2β Command canceled π (you bailed)4β Authentication required π (who even are you rn)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. fr fr, always check the command's own help π
π EXAMPLE π
# Clone and overwrite labels from cli/cli repository into the current repository
$ gh label clone cli/cli --force
# Clone labels from cli/cli repository into octocat/cli repository
$ gh label clone cli/cli --repo octocat/cli
See how the first one is all "current repo, and yes overwrite" and the second one is all "actually put them over there in octocat/cli"? Chef's kiss. πΈ
π SEE ALSO π
gh-label(1)β the whole label family, go meet the relatives π«Ά
and that's the page, bestie!! this one comes from GitHub CLI v2.102.0, dated Oct 2026 β same manual, same energy, no cap. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms