To keep a consistent end of line character between developers, the autocrlf
setting of Git should be set to true
.
git config --global core.autocrlf true
If the previous command was run after the repository was clone, Git's working tree might mismatch with your current configuration. Simply run the following commands in order to fix the issue.
git rm --cached -r .
git reset --hard