2

I have a branch named "develop" and based on that branch I made another branch "TestFeature" . And then I made other branch "NewFeature" based on TestFeature and made some changes and commited .

Problem is that I dont want the changes that are in TestFeature to be present in my NewFeature branch . I want it to be based on "develop" .

How can I do it ?

yantrakaar
  • 374
  • 3
  • 15
  • 2
    `git rebase --onto ...` Interestingly [the documentation](http://git-scm.com/docs/git-rebase) has an example that is *very* close to what you describe. Did you not read it? – Biffen Nov 27 '14 at 13:09
  • It worked . Thanks . I did git rebase --onto develop TestFeature NewFeature – yantrakaar Nov 27 '14 at 13:21

1 Answers1

4

(Turning my comment into an answer.)

git rebase --onto ...

Interestingly the documentation has an example that is very close to what you describe.

Biffen
  • 6,249
  • 6
  • 28
  • 36