Forrest logo
back to the gh tool

gh-label:tldr:7f80f

gh-label: Clone labels from a specific repository into the repository in the current directory.
$ gh label clone ${owner}/${repository}
try on your machine

The command "gh label clone ${owner}/${repository}" is used to clone all the labels from one repository to another repository in GitHub.

Here's a breakdown of the command:

  • "gh label clone" invokes the GitHub CLI command for cloning labels.
  • "${owner}/${repository}" represents the owner and name of the repository from which the labels will be cloned. This needs to be replaced with the actual owner and repository name.

When you run this command, it will create the same set of labels in the targeted repository, copying all the labels' names, colors, descriptions, and other properties. This can be useful if you want to replicate a set of labels across multiple repositories or if you want to ensure consistency of labels within your organization's repositories.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool