Btw if you are interested in configuring line endings in the git config for good, you might find this tool handy:
https://hediet.github.io/git-line-endings/
A github action brute forces all combinations of line endings and tries out what happens on checkout etc.