Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the merge tool disabled in Eclipse for a EGit-managed project?

Tags:

git

eclipse

egit

As per the EGit User Guide, to use the merge tool, one should right-click on the resource with a merge conflict and then select Team > Merge Tool. However, when I do this, the Merge Tool option is greyed out. EGit is properly detecting the conflict and showing me both the icon and text label decorations for the file in conflict.

Any ideas?

like image 918
Josh Glover Avatar asked May 09 '11 09:05

Josh Glover


People also ask

How do you merge in EGIT?

Your task is to merge a different branch into that branch. After doing a "fetch" to ensure that your branch metadata is up to date, right-click on the repository and select "Merge...". Select the branch you want to merge into your current branch.

How do I merge in Eclipse?

To start merging click 'Team>Merge...' menu item of the resource pop-up menu, 'Merge...' menu item of the SVN main menu group or on the 'Merge...' button on the 'SVN Toolbar'. The Merge Dialog will appear and to perform operation user should follow its instructions and fill needed properties.

How does Eclipse handle merge conflicts?

To resolve the conflicts in the Eclipse Compare Editor, right-click the conflicted file and click Open in compare editor. In the Compare Editor, you can use the Copy all nonconflicting changes from right to left button to reduce the number of conflicts that you must review and resolve yourself.


1 Answers

It was disabled for me because I had some changes on my stash list.

$ git stash clear

fixed the problem for me.

like image 71
Meisam Avatar answered Oct 23 '22 13:10

Meisam