If windows and mac work in the same repository, please tell me how to automatically convert the local repository to CR + LF for Windows and LF for Mac.
Please let me know if there are any other points to note when working on a different OS. Please.

Error message

When I created a repository on mac and cloned it on windows, the line feed code was LF and the program did not work.
Therefore, I tried to change the line feed code automatically by executing the following code, but if I clone it with windows, the line feed code is still LF and could not be solved.
There is no binary file in the cloned file.
core.autoCRLF I tried false and input, but the line feed code remained LF.

>git config --global core.autoCRLF True
Supplemental information (FW/tool version etc.)

OS: win10, macOS High Sierra
git client: SourceTree