I have a repo that will only ever be used on Windows. And I would prefer that source control does not modify the contents of my files in any way.
I set core.autocrlf
to false in global settings and verified that no local repo override was present. I found that there was an existing .gitattributes file in my repo with * text=auto
as the only entry. So I deleted the .gitattributes file. From reading the documentation, my understanding is that this should result in text
being unspecified, and will follow the behavior set for core.autocrlf
.
However, I still get the following error when I stage my files:
LF will be replaced by CRLF in MyProject/src/static/images/logo.svg.
The file will have its original line endings in your working directory.
If I understand correctly, there's something that still modifies my files. What is it and how can I stop it?