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
The best line endings practice is here: https://stackoverflow.com/a/10855862
To determine the line endings in a existing git repository:
core.autocrlf to false, so it will not change file endings while transmitting files.git clone your repo for ex. in a new directory.You can't determine what core.autocrlf was used by the creator as it is local config except the repo has .gitattributes file.
On Windows if you are not using .gitattributes just use core.autocrlf true as it set by default.