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

Re: rebasing a merge

From
Jay Soffian <jaysoffian@gmail.com>
Date
Jun 18, 2010, 15:19 UTC
Message-ID
<AANLkTikH9S1GCOwJfmKvO4fTvG46libJtrdMNQeiBm1_@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.00.1006181010220.12445@ds9.cixit.se>
On Fri, Jun 18, 2010 at 5:10 AM, Peter Krefting <peter@softwolves.pp.se> wrote:
Show 6 quoted lines
> Jay Soffian:
>
>> Here's how I've been doing it, but I'll bet there's a less convoluted way:
>
> Do you have git-rerere enabled? I have found that to be a major timesaver
> for cases like these.

I'm familiar with rerere. The problem is that my original merge often takes me several attempts to get correct, where each attempt I'm amending the merge. So once the merge is finally correct, I need to retrain rerere (see my earlier post to the list about this). Now at that point, I could use "git rebase -i -p --onto ..." to redo the merge and let rerere take care of the conflict resolution.

Which is what I was doing. But it occurred to me that the final tree that I want is the same as if I just do a second merge, save that off, then redo my original merge and commit it with the second merge's tree. This is also a lot faster (this repo is 1GB well packed composed of 40k files) and I think less error prone.

j.
Previous: Peter KreftingNext: Peter Krefting
Message 4 of 6 in “rebasing a merge”
  1. Jay SoffianJun 17, 2010
  2. Jay SoffianJun 18, 2010
  3. Peter KreftingJun 18, 2010
  4. Jay SoffianJun 18, 2010
  5. Peter KreftingJun 24, 2010
  6. Jay SoffianJun 24, 2010

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.