Is there a way to determine the line endings in a existing git repository?
If I clone a existing repository how do I determine what core.autocrlf was used by the cre
In Windows, just run the below command from the command prompt:
git config --list
This will list all the git configuration variables.
If you want to get the individual config setting (e.g. for core.autocrlf), run the following command on the windows command prompt:
git config --get core.autocrlf
This will either give you a "true" OR "false" value.
IF you wish to change this, edit C:\ProgramData\Git\config file, and change the value from false to true
Note: This only applies for Windows operating systems.