I had a highly problematic git merging and my repo has now a little bit of trouble.
Actually, I have a lot of files seeming so:
<<<<<<< HEAD
...version1...
=======
...version2...
>>>>>>> <long hexa code>
As we know, this is the normal behaviour in the case of merge conflicts. But I don't have the other file versions, only these.
How could I merge this interactively? What I would need, is to see "version1" and "version2" next to each other and be able to merge them interactively.
Of course, these file format means a syntax error with every software.
git merge
and all of the merge tools are saying, that there is no merge conflict. But, there is.
What should I do?
Extension #1: I split the files with a little bit of shellscripting, with the command
for i in $(cat ../conflicts); do csplit $i '/=======/' -f $i. -n 1;done
Now I have the parts of these files in path.0
and in path.1
. Now I would need an interactive solution to merge them.