git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Ricardo Biehl PasqualiNext: Ricardo Biehl Pasquali
Message 2 of 6 in “rebase: Ask before doing anything not undoable”
  1. Ricardo Biehl PasqualiDec 20, 2018
  2. Thomas BraunDec 20, 2018
  3. Ricardo Biehl PasqualiDec 20, 2018
  4. Ricardo Biehl PasqualiDec 20, 2018
  5. Thomas BraunDec 20, 2018
  6. Ricardo Biehl PasqualiDec 21, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.