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

After a rebase, ORIG_HEAD points to the previous tip of the branch?

From
Ilya Kantor <iliakan@gmail.com>
Date
Apr 8, 2018, 21:10 UTC
Message-ID
<CAFU8umhSAufzbPBDMVt4ekcWjPa4Yymh+NeW=BYa8ARuRuZcbw@mail.gmail.com>
Hi,

Immediately after a finished rebase, is it true that ORIG_HEAD points to the previous tip of the branch?

So that `git reset --hard ORIG_HEAD` will cancel the rebase?

P.S. I'm asking because most of time that is so, but there is at least one case when ORIG_HEAD breaks that assumption. Not sure if it's a bug or not.

--- Best Regards, Ilya Kantor

Next: Junio C Hamano
Message 1 of 2 in “After a rebase, ORIG_HEAD points to the previous tip of the branch?”
  1. Ilya KantorApr 8, 2018
  2. Junio C HamanoApr 8, 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.