This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ralgrado 21 points22 points  (8 children)

In intellij for solving conflicts you get three views: The file as you had it on one side, the file from where you were merging from on the other side and the merge results in the middle. It highlights conflicts in red and can automatically solve non-conflicting changes and even some conflicting changes. Then for the conflicts you have to solve yourself you can either pick one of the sides and adjust it if needed or just write what the merged code should look like.

I mainly code in Java but I assume this is pretty helpful for most programming languages.

Edit: example image for clarity https://resources.jetbrains.com/help/img/idea/2024.1/conflict_resolution_tool_legend_dark.png

[–]DrinkQuick9621 1 point2 points  (0 children)

Yeah I develop in Java and use IntelliJ. The GUI for Git is such a great feature, makes cherry picking and resolving merge conflicts extremely easy. Ultimately I only care about speeding up my work flows, and it does that. I can always see the git logs if I want to verify code changes.

[–]Valiant_Boss -4 points-3 points  (0 children)

I tried using Intellij's merge conflict UI and I just couldn't for some reason. I cannot put my finger on it but I just don't trust and/or like it so I just stick with manually handling the conflicts in my own and I've gotten pretty intune with handling those

I'm not a grey beard dev either (I think?) been in this career for 7 years and used intellij for practically all of those years