git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can't get git rebase --onto to work
@ 2011-06-02 10:17 Howard Miller
  2011-06-02 10:32 ` Carlos Martín Nieto
  2011-06-02 10:38 ` Tim Guirgies
  0 siblings, 2 replies; 10+ messages in thread
From: Howard Miller @ 2011-06-02 10:17 UTC (permalink / raw)
  To: git

Trying to explain this as concisely as possible.

I started with the following branches (names changed to protect the guilty)...

* clientA
* clientB

both have a common ancestry....

I then checked out clientB created a new branch clientB_patch and did
a load of work and commits.

However, I actually wanted all those commits to apply to clientA
branch instead so....

git checkout clientA
git checkout -b clientA_patch     (to ensure I didn't wreck original branch)
git rebase --onto clientA_patch clientB clientB_patch

It says "rewinding" head and then applies the commits I would have expected.

However, I have now been switched to the 'clientB_patch' branch and it
says that it differs from its tracked remote branch by hundreds of
commits.

clientA_patch is unchanged. It seems to have mangled clientB_patch and
done nothing to clientA_patch. Where did I go wrong?

TIA

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-06-02 11:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02 10:17 Can't get git rebase --onto to work Howard Miller
2011-06-02 10:32 ` Carlos Martín Nieto
2011-06-02 10:38   ` Howard Miller
2011-06-02 10:38 ` Tim Guirgies
2011-06-02 10:43   ` Howard Miller
2011-06-02 10:52     ` Tim Guirgies
2011-06-02 10:58       ` Howard Miller
2011-06-02 11:18         ` David
2011-06-02 11:18         ` Tim Guirgies
2011-06-02 11:28           ` Howard Miller

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 NNTP newsgroup(s).