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

how to rebase backwards

From
BLbill lam <cbill.lam@gmail.com>
Date
Nov 3, 2009, 05:45 UTC
Message-ID
<20091103054510.GB7117@debian.b2j>
I want to rebase a new branch onto an earlier commit 
original:  
E is a newly created branch from D and not yet modified
                    E
                   /
-- A -- B -- C -- D
new: what I wanted
     B'-- C' -- E     for deployment
    /          
-- A -- B -- C -- D    trunk

so that I can continue to change all commits from B to C without affecting E

I try (not sure if correct) doing it by
  git rebase --onto A B E

but then there is a lot of conflict/both modified files. What will be the correct way to do it?

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Next: Junio C Hamano
Message 1 of 5 in “how to rebase backwards”
  1. bill lamNov 3, 2009
  2. Junio C HamanoNov 3, 2009
  3. bill lamNov 3, 2009
  4. David KågedalNov 5, 2009
  5. bill lamNov 6, 2009

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.