![]() |
![]()
| ![]() |
![]()
NAMEgh-repo-set-default - Configure default repository for this directory SYNOPSISgh repo set-default [<repository>] [flags] DESCRIPTIONThis 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:
NOTE: gh does not use the default repository for managing repository and environment secrets.OPTIONS
EXIT CODES0: Successful execution 1: Error 2: Command canceled 4: Authentication required NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. EXAMPLE# Interactively select a default repository $ gh repo set-default # Set a repository explicitly $ gh repo set-default owner/repo # View the current default repository $ gh repo set-default --view # Show more repository options in the interactive picker $ git remote add newrepo https://github.com/owner/repo $ gh repo set-default SEE ALSOgh-repo(1)
|