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/REPO format. The brackets literally mean HOST/ 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