autorebase icon indicating copy to clipboard operation
autorebase copied to clipboard

Recover from a crash, by cleaning the worktree

Open FauxFaux opened this issue 4 years ago • 1 comments

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!)

FauxFaux avatar Jun 10 '21 19:06 FauxFaux

Good idea! I did think of this but I was hoping my coding skills were so great it would just never crash. Ah well.

(hi from reddit!)

Hi :-)

Timmmm avatar Jun 14 '21 09:06 Timmmm