Skip to content

Update remote naming when using gh repo fork to use origin & upstream #582

@waldyrious

Description

@waldyrious

When forking a repo with gh repo fork, the remote is named "fork".

Instead I'd prefer this to use the upstream's namespace (username under which the fork lives), which, for a fork created by me, would be "waldyrious".

That would make the list of remotes more self-descriptive, and would allow cloning multiple forks of the same repo without naming conflicts or using e.g. counters like "fork-1", etc.

Note: the proposed solution is what hub does.

Metadata

Metadata

Assignees

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