threads / discuss / 59568

git rebase does not rebase commits

Subject: git rebase does not rebase commits

## tl;dr

One message between Apr 8, 2023 and Apr 8, 2023.

replies: 0people: 1as markdown or json

Eugen Konkov· Apr 8, 2023, 18:00 UTC · lore
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

← back to recent threads