Bug, git rebase -i does not abort correctly
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jan 25, 2018, 12:13 UTC
- Message-ID
- <CACsJy8Dzh5E8JUDkwFmYTwS6KgqGc_1rJBVsDCoC9EpcSShN2Q@mail.gmail.com>
rebase scripts are too much for me, so I'll play the user reporting bugs this time :)
Instead of doing
$ git rebase -i --onto origin/master @~3
I sometimes accidentally type
$ git rebase -i origin/master @~3
("rebase -i" is actually an alias, which is why I never forget to type -i)Usually the todo list in $EDITOR shows noop, I realize my mistake and try to abort it by clearing the todo list before saving and closing $EDITOR. The problem is, HEAD is moved away anyway (to origin/master I think) even if rebase is supposed to abort the operation and leave HEAD untouched.
-- Duy