Skip to content

[Feature]: Create new worktree with existing branch #5181

Description

@shaharmor

Problem or use case

Hi,

Sometimes after I finish working on a specific worktree/branch and I delete it, I sometimes need to go back to that branch and do more changes (Fix merge conflicts, update tests, fix build issues, etc).

Currently it is impossible to create a new worktree from an existing branch, you can only choose which branch to create from.

This means that the flow today is to create a new worktree from the original branch, orca will create a new branch out of it, and then you need to manually run git checkout <original_branch> to go back to the correct branch.

Proposed solution

Add a checkbox in the new worktree popup to NOT create a new branch but instead re-use the chosen one

Alternatives or additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementsize/m

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions