On Thu, 25 Oct 2012 09:47:58 -0700 (PDT)
Kersten Broich <kersten.bro...@googlemail.com> wrote:
> I have a question regarding fetching changes from a parent branch.
> Imagine the following situation: I have a branch called "develop" - I
> create a new branch like this:
> git checkout -b newbranch
> I do some work there. After some time I switch back to the develop
> git checkout develop
> No I do some work here and commit. After some time I want to switch
> back to my 'newbranch' idea.
> git checkout newbranch
> How do I now make sure that I fetch all changes I did in the meantime
> from the parent branch (in this case 'develop')... is it that I have
> git merge --no-ff develop
> or is there a better way?
Either merge (but why would you need --no-ff?) or rebase:
$ git checkout newbranch
$ git rebase develop
As usually,  is advised to be read, or, better yet, the whole
chapter on branches .
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at