Skip to content

Allow a local branch name to be provided when checking out a pull request #835

@novemberborn

Description

@novemberborn

Describe the feature or problem you’d like to solve

gh pr checkout is great, but afterwards I find it hard to recognize the checked out PR in my branch list.

Proposed solution

If I could pass -b my-preferred-branch-name it'd be easier to manage the resulting branches.

Alternatively, perhaps the branch could be prefixed, e.g. pr-1234-remote-branch-name.

Additional context

#746 (comment) suggests this as a workaround when the CLI can't determine a viable branch name itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions