EGit Merge Conflicts

egit merge conflicts

Search for: egit merge conflicts

I do a pull.

egit reports a merge conflict.

I see 3 heads. fetch head, my current local commit head, merge head.

It points out to the merge view with the files listed.

However, I do not know a) how to merge b) how to say i am done with merge.

Problem1: It is only allowing movement from local copy to the "editable". is that what is supposed to happen?

Problem2: How do I say accept the file?

Very confusing!!!

Here is a doc (seem old) but seem to give some hints

Git Non-fast-forward

Search for: Git Non-fast-forward

If you try to commit-push but the remote has a commit point that came after your last pull commit.

So the commit-push will be rejected.


1. commit-push 
   //fails as there were new commits on server
   commit succeeds, but stays un-pushed.

2. Pull //will pull and merge
   A merged local commit will be created

3. push again
   Both commits will be pushed up to the server.

egit synchronize

Search for: egit synchronize

Here is an important topic: Comparing

How do you review before performing a merge

Search for: How do you review before performing a merge

To update remote references in order to see the latest commits one has to do a fetch.

Even the history view will not show without a fetch.

What is git stash changes

Search for: What is git stash changes