Search code examples
eclipsegitmergeegit

EGit "synchronize workspace" won't mark merge conflict as resolved


Until now I merge simply with the fetch+merge approach and if there was a merge conflict I fixed it manually, staged it and commited. It resolved just fine.

Now I decided to try out the "synchronize workspace" thingie. I checkout my local branch and run that command on the remote branch of origin. How do I pull single files into my repository?

I tried using merge or pull, but instead of integrating the change, it suddenly tells me that there is a merge conflict. This conflict should not occur in the first place, but indexing and committing again does not fix the error. I synchronize with workspace and it keeps showing the two sided red error on two identical files...


Solution

  • Try instead a fetch + rebase: you will have to resolve the conflict again, but once that is done, your amended commit should be on top of origin/master: the next fetch should do nothing, since everything was fetched.

    See this tutorial:

    http://eclipsesource.com/blogs/wp-content/uploads/2012/09/Screen-Shot-2012-09-25-at-3.34.08-PM.png