Open crguezl opened 2 months ago
The GitHub CLI (gh
) uses the -R
option in several commands to specify an alternative repository. This allows you to perform operations on repositories other than the one currently set as your default or the one you are working in.
-R
OptionHere are some common gh
commands that utilize the -R
option:
gh issue
: Manage issues for a repository.
gh issue list -R owner/repo
gh pr
: Manage pull requests for a repository.
gh pr list -R owner/repo
gh repo
: Manage GitHub repositories.
gh repo view -R owner/repo
gh release
: Manage releases for a repository.
gh release list -R owner/repo
gh workflow
: Manage GitHub Actions workflows.
gh workflow list -R owner/repo
Here are some examples demonstrating how to use the -R
option:
List Issues in an Alternative Repository:
gh issue list -R owner/alternative-repo
List Pull Requests in an Alternative Repository:
gh pr list -R owner/alternative-repo
View Details of an Alternative Repository:
gh repo view -R owner/alternative-repo
List Releases in an Alternative Repository:
gh release list -R owner/alternative-repo
List Workflows in an Alternative Repository:
gh workflow list -R owner/alternative-repo
The general syntax for using the -R
option is:
gh <command> <subcommand> -R owner/repo
The -R
option is a versatile feature of the GitHub CLI that allows you to perform various operations on repositories other than the current or default one. It is particularly useful for managing multiple repositories from the command line.
gh browse
parece funcionar biengh codespace -R
testeargh issue -R
testear