I like to git rebase -i HEAD~5
to squash my commits down. Sometimes I think I need to go back 5 commits but then realize I need 7. However git has already brought up the rebase editor .git/rebase-merge/git-rebase-todo
in vim.
If I quit that buffer (vim) then git says:
Successfully rebased and updated refs/heads/my-branchname
Is there a way to stop the rebase from w/in the editor? I suppose I could git rebase --abort
from another shell but not sure what that would do to the git-rebase-todo
file that I'd be in the middle of editing in another buffer.
:cq
will not do that, causing an actual no-op.