Skip to content

gh repo clone should resolve paths too #8725

@oriongonza

Description

@oriongonza

Describe the feature or problem you’d like to solve

gh repo clone https://github.com/cli/cli/tree/trunk/internal should clone cli/cli

Proposed solution

I'm often exploring a repo in github and I want to actually copy it locally so I copy the url and paste it into git clone then remove the paths. It would be nice if I could skip that step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-reporelating to the gh repo commandhelp wantedContributions welcome

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions