gh repo set-default
gh repo set-default [<repository>] [flags]
This command sets the default remote repository to use when querying the GitHub API for the locally cloned repository.
gh uses the default repository for things like:
- viewing and creating pull requests
- viewing and creating issues
- viewing and creating releases
- working with GitHub Actions
- adding repository and environment secrets
Options
-u
,--unset
- unset the current default repository
-v
,--view
- view the current default repository