cygwin - How to abort the sequence of git commits being reverted -
i started git revert on long sequence of commits, not knowing -no-edit option. each commit being reverted pops editor. quitting editor without saving "aborts" revert, particular commit being reverted - exits git pops edit window next commit in sequence being reverted.
the man page on web shows option --abort want, tried using (in different window), , 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, presumably --abort option introduced in newer version. how can cleanly stop whole sequence start on --no-edit option? don't want have quit hundreds of editor sessions.
the manual revert --abort can replaced git reset --hard. have effect of stopping loop albeit errors complaining refs/heads branch not @ commit expected when quit editor.
do git log (to check commit generated git revert), , select sha1 of commit want reset to.
that being said, using git in cygwin avoided, using latest (4 days ago) git windows 2.4.5.
portablegit-2.4.5.1-4th-release-candidate-64-bit.7z.exe can extracted anywhere want, , comes git-bash.exe opens recent , complete bash.
Comments
Post a Comment