I started a git revert
on a fairly long sequence of commits, not knowing about the -no-edit
option. So each commit being reverted pops up the editor. Quitting the editor without saving "aborts" the revert, but only for the particular commit being reverted - so as soon as it exits git pops up another edit window for the next commit in the sequence being reverted.
The man page on the web shows an option --abort
that does what I want, but I tried using it (in a different window), and get the usage message:
$ git revert --abort live-20121111..V2.1-master
usage: git revert [options] <commit-ish>
I'm using Cygwin git
version 1.7.5.1, so presumably the --abort
option was introduced in a newer version. How can I cleanly stop the whole sequence to start over with the --no-edit
option? I don't want to have to quit hundreds of editor sessions.