Reputation: 918
When a merge conflict occurs in a Jetbrains IDE (InteliJ IDEA, Webstorm, PyCharm, AppCode, CLion, PhpStorm, RubyMine, GoLand, etc), I use the 'Resolve Conflict" interface to fix the problems. But if I am unhappy about how I resolved the conflicts in one or more files, there seems to be no way to revert to the original (conflicted) state without aborting the entire merge, losing other work that I have done.
Is there a way to restart the resolve conflicts for that particular file?
I don't want to revert all changes and restart since I am happy about all the other merged files. I found Show a "resolve merge conflicts" dialog for a file in intellij, but that doesn't restart the merging operation, only opens the resolve conflicts screen.
Upvotes: 2
Views: 1225
Reputation: 11
As Dmitriy said it does not appear there is any way to do this through the IntellJ UI. You can however revert the file back to the "merge conflict" state through git using the "-m" directive with git checkout, ie:
git checkout -m src/java/yourFileYouWantToRemerge.java
Upvotes: 1
Reputation: 7528
Is there a way to restart the resolve conflicts for that particular file
No, there is no way to do this in UI. Vote for https://youtrack.jetbrains.com/issue/IDEA-158349
Upvotes: 3