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

前端 未结 9 1513
旧时难觅i
旧时难觅i 2021-01-30 09:02

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 pu

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 09:22

    After you get from Eclipse the ugly CheckoutConflictException, the Eclipse-Merge Tool button is disabled.

    Git need alle your files added to the Index for enable Merging.

    So, to merge your Changes and commit them you need to add your files first to the index "Add to Index" and "Commit" them without "Push". Then you should see one pending pull and one pending push request in Eclipse. You see that in one up arrow and one down arrow.

    If all conflict Files are in the commit, you can "pull" again. Then you will see something like:

    \< < < < < < < HEAD Server Version \======= Local Version > > > > > > > branch 'master' of ....git

    Then you either change it by the Merge-Tool, which is now enable or just do the merge by hand direct in the file. In the last step, you have to add the modified files again to the index and "Commit and Push" them.

    Checking done!

提交回复
热议问题