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

git rebase does not rebase commits

From
EKEugen Konkov <kes-kes@yandex.ru>
Date
Apr 8, 2023, 18:00 UTC
Message-ID
<1895713690.20230408140025@yandex.ru>
Hello Git team,
If I am trying to rebase commits from one unrelated history to another but this does not work.
Example:
* Merge
|\
| *x1 (test)
| *x2
*y1 (upstream)
*y2
git rebase --onto upstream upstream test

The TODO label onto

# Branch openapi3-exception-handling reset [new root] pick x1 pick x2

I think problem is here because 'test' branch does not have fork point with 'upstream'

Expected: label onto

# Branch openapi3-exception-handling reset upstream pick x1 pick x2

Is this a bug or I did something wrong or missed some options?
-- 
Best regards,
Eugen Konkov
Message 1 of 1 in “git rebase does not rebase commits”
  1. Eugen KonkovApr 8, 2023

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.