Eclipse EGit Checkout conflict with files: – EGit doesn't want to continue

I’ve started Eclipse EGit. In some scenarios it is really not comprehensive.

I have local file e.g. pom.xml changed. On git server this file was changed.
I do pull, EGIt says:

Checkout conflict with files:

i.e. pulling stops (fetch is done, but not merge), that is OK. However the next is bad experience.

I synchronize workspace, put my changes aside and make it the same as FETCH_HEAD. But EGit doesn’t want to continue. I replace the file with HEAD revision. But EGit still doesn’t want to continue.

What standard expected user operation should be with EGit after conflict resolution?

UPDATE:

I added to index, then marked as Merged -> pull still can’t pass.
When I select Merge I get the dialog

enter image description here

I can’t commit the file as it is not in list of changed files.

  • Git merges all the time
  • Best git mysql versioning system?
  • Merge from upstream with no upstream history
  • Why doesn't git know I merged? Is there a way to tell it?
  • Teamcity fails to merge automatically
  • SourceTree merge ignore whitespace conflicts
  • Git Mergetool: “No files need merging”
  • rebasing a heavily-merged branch prior to pushing changes upstream
  • 4 Solutions collect form web for “Eclipse EGit Checkout conflict with files: – EGit doesn't want to continue”

    Situation:

    • You have local uncommitted changes
    • You pull from the master repo
    • You get the error “Checkout conflict with files: xy”

    Solution:

    • Stage and commit (at least) the files xy
    • Pull again
    • If automerge is possible, everything is ok.
    • If not, the pull merges the files and inserts the merge-conflict markers (<<<<<<, >>>>)
      • Manually edit the conflicting files
    • Commit and push

    This is the way I solved my problem:

    1. Right click the folder that has uncommitted changes on your local
    2. Click Team > Advanced > Assume Unchanged
    3. Pull from master.

    UPDATE:

    As Hugo Zuleta rightly pointed out, you should be careful while applying this. He says that it might end up saying the branch is up to date, but the changes aren’t shown, resulting in desync from the branch.

    1. After closing the Conflict Error Dialog; from the Project Explorer, right click on the head of the project -> Team -> Stashes -> Stash Changes
    2. Enter a name for your stash. E.G. “Conflict”
    3. Try Pulling again. Hopefully there are no errors this time.
    4. From the Git Repository view, expand your repository -> Stashed Commits
    5. Right Click on the stash you created in step 2 -> Apply Stashed Changes
    6. This brings up the merge tool if it can’t automatically merge it.
    7. Manually resolve the merge conflicts in the file/s.
    8. Right Click on the file editor -> Team -> Add To Index
    9. If you are not ready to commit the file or just don’t want it in the Index, right click on the file editor -> Team -> Remove from Index.
    10. Cleanup: From the Git Repository view, right Click on the stash you created in step 2 -> Delete Stashed Commit

    Your local working directory file should be be merged

    I guess the best way to do this is like this :

    1. Store all your changes in a separate branch.
    2. Then do a hard reset on the local master.
    3. Then merge back your changes from the locally created branch
    4. Then commit and push your changes.

    That how I resolve mine, whenever it happens.

    Git Baby is a git and github fan, let's start git clone.