I had a very problematic git merge and my repo now has a bit of problems.
In fact, I have many files that look like this:
<<<<<<< HEAD
...version1...
=======
...version2...
>>>>>>> <long hexa code>
As we know, this is normal behavior in the event of merge conflicts. But I do not have other versions of the files, only them.
How can I combine this interactively? What I need is to see "version1" and "version2" next to each other and be able to combine them interactively.
Of course, this file format means a syntax error for each software.
git merge, and all merge tools say there is no merge conflict. But there is.
What should I do?
Extension # 1: I split the files using a bit of shellscripting, with the command
for i in $(cat ../conflicts); do csplit $i '/=======/' -f $i. -n 1;done
path.0 path.1. .