Am 14.03.24 um 11:30 schrieb Kai: > I am encountering strange behavior when trying to merge master into a > feature branch. Trying with guis VScode and Gitkraken, both are not > displaying all conflicts in the files correctly and are just accepting > some changes from master which are conflicts and break the code. > > I am including two example files as well as screenshots. No files were included in this message. Don't post screenshots when the content can also be represented as text. That said, a conflict needs three files, not two: the base version, their version, and our version. But better than file attachments would be to just paste the relevant parts into the message (if you know what the relevant parts are and that other parts are not relevant). > In the first example, the conflict of the UseFormReturn type changing > between the two versions of the file is not being recognized. > > In the second example the useForm hook is completely different between > master and the feature branch called hook-form, but no conflict is > displayed. These descriptions sound like the conflicts are of semantic kind. Git can't help in such cases. Git can only detect textual conflicts, that is, when both sides modify the same or adjacent lines of code in different ways. -- Hannes