Closed
Description
Describe the feature or problem you’d like to solve
I'd like to be able to specify the remote name to check out when I fork the current repo.
The current behaviour of defaulting to origin
, and renaming an existing origin
remote to upstream
, doesn't really work when you need more than two remotes.
Proposed solution
gh repo fork --clone=false --remote=fork
# or:
gh repo fork --clone=false --remote=true --remote-name=fork
Additional context
Today I do this with:
hub fork --remote-name=fork
Ref. #2722 (comment)