-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
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 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-stubShould be possible to add it to Python code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels