I'm working on two branches (main and dev) because I'm developing two similar functionalities and I wanted to test them, which one works better and it turned out that on one branch there is a subfunction that works better and on the other there is the rest of the code,
I thought that when I do a merge, it will show the conflict and I can manually choose which lines of code I will leave and which I will discard. (I'm using Azure DevOps) Unfortunately git doesn't see the conflict and just overwrites file on main with the file from the other branch
Is it possible to compare two files during merge and choose what to add?
I only see an option that compares files, but it is read-only... and I can't make changes.
I would like to do it professionally (now I put the text that causes the conflict).
I would like to have this option (or similar) always available.