Skip to content

imerge abort #214

@abitrolly

Description

@abitrolly

I am trying to summarize how to abort imerge, because there is no such command yet.

TL;DR

git merge --abort
git switch $(git rev-parse --abbrev-ref HEAD | cut -d/ -f2)
imerge remove

First command aborts merge.
Second finds the original branch name and switches to it.
Third cleans up imerge branch.

Demonstration how the branch detection works.

✗ git rev-parse --abbrev-ref HEAD
imerge/tests-root-stub
✗ git rev-parse --abbrev-ref HEAD | cut -d/ -f2
tests-root-stub

Should be possible to add it to Python code.

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