Is there a way to determine the line endings in a existing git repo?
To check what line endings were actually committed in the repository (regardless of your core.autocrlf setting), try the following: git grep -I –files-with-matches –perl-regexp ‘\r’ HEAD (-I means that binary files should not be looked at.)