Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show a "resolve merge conflicts" dialog for a file in intellij

I have done a git pull and the normal merge markers are now available in the original file and visible within the Intellij project:

enter image description here

Is there a way to show the three panel merge conflict resolution dialog for this file?

Note: there is a command line tool to do this that works well - but I am looking actually for some way within Intellij. The command line approach is via git mergetool :

git config --global merge.tool meld  # opendiff is another option here
git mergetool -y
like image 925
WestCoastProjects Avatar asked May 28 '18 19:05

WestCoastProjects


People also ask

How do you show merge conflicts?

To see the beginning of the merge conflict in your file, search the file for the conflict marker <<<<<<< . When you open the file in your text editor, you'll see the changes from the HEAD or base branch after the line <<<<<<< HEAD .

Which command in Git can be used to see files in merge conflict?

The status command is in frequent use when a working with Git and during a merge it will help identify conflicted files.


2 Answers

Right-click the file, select Git | Resolve Conflicts... in the context menu.

like image 195
yole Avatar answered Sep 19 '22 12:09

yole


In IntelliJ 2019.3.5, right click the 'VCS' menu in the top menu, navigate to 'Git' and choose 'Resolve Conflicts...', as shown in the attached screenshot:

enter image description here.

like image 21
tonderaimuchada Avatar answered Sep 18 '22 12:09

tonderaimuchada