Skip to content

[Feature Request] Allow rebase to cancel itself when corrupted #2320

@redsigma

Description

@redsigma

If you were to do a rebase and somehow it fails because of some application that was using the files you were trying to rebase, the rebase gets stuck in a corrupted state.

Image

Doing a git rebase --abort results in the error:

 warning: could not read '.git/rebase-merge/head-name': No such file or directory

I had to do the following operations to fix this:

git reset --hard HEAD

rm -rf .git/rebase-merge/

My question is if it is possible to detect that error and show some popup which the following buttons/options:

  • discard all and rebase -> will use that git reset + rm -rf combination
  • leave as is -> will use git rebase --quit to exit rebasing and leave things in the current state

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