Skip to content

Allow specifying the remote name to fork to #2723

Closed
@gibfahn

Description

@gibfahn

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions