Re: rebase: Ask before doing anything not undoable
- From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
- Date
- Dec 20, 2018, 18:28 UTC
- Message-ID
- <3a7a52c3-3ae7-6e5e-b660-49fb21dc7d17@virtuell-zuhause.de>
- In-Reply-To
- <20181220173348.GA5203@localhost.localdomain>
Am 20.12.2018 um 18:33 schrieb Ricardo Biehl Pasquali:
Show 10 quoted lines
> 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.