Skip to content

Support gh pr merge -d with git worktrees #3442

@abatilo

Description

@abatilo

Describe the feature or problem you’d like to solve

One of the reasons that I really enjoy using gh is because of how easy it is to manage and switch between different PRs. And using gh pr merge -d is very nice because it will delete your branch locally and switch you back to the default branch. This doesn't seem to work with a worktree setup.

I'd just like to request that gh pr merge -d can support deleting my local worktree for the branch that I made the PR in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLIgh-prrelating to the gh pr command

    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