If you are in the window of the initial interactive redirect editor, which looks like this:
pick f7f3f6d changed my name a bit pick 310154e updated README formatting and added blame pick a5f4a0d added cat-file
you can abort the reinstallation by deleting the entire contents of the editor window and save it or by forcing the editor to close the error code.
In vim, this can be done with d SHIFT+g followed by :wq , or, alternatively, causing the editor to exit with an error, as Mike HP pointed out, using :cq .
If you have already left this window and run the following squash / edits / etc commands, this will not lead to interruption of all redirects, but only to changes to the commands that are currently being edited. At this point, you can kill the editor as described above, but in addition you will have to run git rebase --abort on the command line.
source share