Skip to content

jit new remote:branch fails if branch already exists #50

@barrettj12

Description

@barrettj12
$ jit new juju:3.1 --no-edit
creating new worktree based on remote branch "juju:3.1"
Error: failed to create new branch: couldn't create branch "3.1": fatal: a branch named '3.1' already exists

exit status 128

If the branch already exists, we should just create a worktree and check out the local branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions