gh repo set-default accepts git remote names
Introduced 2026-01-14 · score 0.93
HOW TO USE IT
When setting a local clone’s default repository to a named Git remote, run `gh repo set-default <remote-name>`.
gh repo set-default originWHY THIS HELPS
Set a repository's default using a named git remote.
REQUIREMENTS AND LIMITATIONS
- Version: v2.85.0
- <repository>: Repository to set as default; the documented example accepts a Git remote name.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON