Web lists-archives.com

Re: rebase: Ask before doing anything not undoable

Am 20.12.2018 um 18:33 schrieb Ricardo Biehl Pasquali:
> It was the second time I've typed "git rebase --co",
> hit tab (for completion) and enter, and the result was
> --committer-date-is-author-date instead of --continue .
> Please do ask user before run actions like these! I have
> not found a way to undo that. I had to perform a reset in
> the repository.
> PS: Notice I was expecting a command of interactive rebase,
>     and I got a bunch of commits's date (and hash) changed.

Do you know about the reflog? This let's you undo these kind of changes.
See git help reflog.