Skip to content

imerge abort #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
abitrolly opened this issue Apr 26, 2025 · 0 comments
Open

imerge abort #214

abitrolly opened this issue Apr 26, 2025 · 0 comments

Comments

@abitrolly
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant