4

I'm working on a "branch" in Eclipse .

Some changes were commited on the "HEAD" branch.

How can I easily update my branch so that it can be synchronized with the HEAD ?

Thank you

PS:

What I did, but I'm not sure it's the best method, is :

  • I commited my changes to the branch I'm working on
  • Right Click > Switch to another branch or version ... > Head (It puts the HEAD in place of my branch)
  • Right Click > Merge ... (Then I select where I merge the HEAD and here I choose my branch).
  • Finally, I : Right Click > Switch to another branch or version ... > My Branch and here I get my branch

Is there a cleaner way to do it ?

Thank you.

2 Answers 2

8

The best way to do it is to right click on the project in the branch and select Team->Merge. Merge the changes done in HEAD with the branch using the Tagging concept.

3

It should be "right-click" -> "update".

4
  • 1
    So what is the difference between "update" and "synchronize with repository" ?
    – Zakaria
    Commented Aug 16, 2011 at 15:09
  • 1
    "Update" is somewhat automatic. "Sychronize" gives you more flexibility. See this: help.eclipse.org/indigo/index.jsp?topic=/…. Commented Aug 16, 2011 at 15:11
  • 1
    -1: That's only going to update the local branch from the repository branch.
    – Steve11235
    Commented Apr 2, 2013 at 13:24
  • @Steve11235: Yes, and that's the first step in doing a merge (which is what the OP appeared to be interested in). Commented Apr 2, 2013 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.