The reason is a different implementation of how the file system stores the file name.
In Unicode, Ü can be represented in two ways: one - only using Ü, the other - using U + ", combining the umlaut symbol." A Unicode string can contain both forms, but since it confuses them, the file system normalizes the Unicode string by setting each umlauted-U to Ü or U +, combining the umlaut character.
Linux uses the old method called Normal-Form-Composed (or NFC), and Mac OS X uses the last method called Normal-Form-Decomposed (NFD).
Apparently, Git does not care about this point and just uses the byte sequence of the file name, which leads to the problem you are facing.
There is a patch on the Git mailing list on Mac OS X and German special characters so that Git compares file names after normalization.
Yuji Apr 7 2018-11-14T00: 00Z
source share