Skip to content

Recover from a crash, by cleaning the worktree #1

@FauxFaux

Description

@FauxFaux

If the app crashes, it leaves the worktree in the middle of a rebase, from which it can't recover.

• Pulling master...
Error: process exited with exit code exit status: 128
Command: ["git", "switch", "master"]
Stdout: 
Stderr: fatal: cannot switch branch while rebasing
Consider "git rebase --quit" or "git worktree add".

I fixed it with git worktree remove autorebase_worktree --force, maybe it could do it automatically.

(hi from reddit!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions