Skip to content

let user to specify the target repo fork name #4849

@chmouel

Description

@chmouel

Describe the feature or problem you’d like to solve

We are able to repo a fork with :

$ gh repo fork

this forks upstream of for example the repository foo to the github user repositories foo (or organisation if specified as is)

it would be nice if we can have the ability to have another name than foo as the user repository target.

Proposed solution

$ gh repo fork --fork-name="forked-repo"

Additional context

I have multiple repos with name "enhancement" from different organization, i need to rename all manually after doing a "gh repo fork" so they won't conflict 😢

  • maybe users can get confused with the already existing --remote-name switch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions