Git diff showing changes at the beginning of text file

199 views Asked by At

I am trying to compare two text files using GIT and WinMerge. While WinMerge is correctly presenting me changes (i have one line changed between files), the git diff command is detecting some "weird" character at the beginning of the text file, which is normally not present. This results in WinMerge reporting 1 line change, while git diff reporting 2 lines changed. I suspect it has to do with different encoding of both files (?) - how can I prevent git from detecting this "additional" change?

Apologies for low quality images - I had to obfuscate them.

GIT diff WinMerge diff

0

There are 0 answers