git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git rebase does not rebase commits
@ 2023-04-08 18:00 Eugen Konkov
  0 siblings, 0 replies; only message in thread
From: Eugen Konkov @ 2023-04-08 18:00 UTC (permalink / raw)
  To: Git Mailing List

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-08 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-08 18:00 git rebase does not rebase commits Eugen Konkov

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).