Mandeep Sandhu:

Here's what I did when I was in topicA:

$ git rebase dev stable topicA
(this was suggested in the manpage as well).

I guess you also had an "--onto" in there, as the above would throw a syntax error. As long as the branches are in order, I cannot see how that wouldn't do what you wanted.

However, the easiest way to do it would probably just to run:

 git checkout topicA
 git rebase dev

As long as "dev" already contains all the commits in "stable", that should work fine. If not, then you would need something more complicated.

Another way to do it would be to use cherry-pick on a new branch:

 git checkout -b new_topicA dev
 git cherry-pick stable..topicA

\\// Peter -
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to