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.
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 removeFirst command aborts merge.
Second finds the original branch name and switches to it.
Third cleans up
imergebranch.Demonstration how the branch detection works.
Should be possible to add it to Python code.