does a git repository have its own local value for core.autocrlf that overrides the global one?

Posted by Warren P on Stack Overflow See other posts from Stack Overflow or by Warren P
Published on 2012-09-09T15:36:27Z Indexed on 2012/09/09 15:38 UTC
Read the original article Hit count: 135

Filed under:
|

As per this question, I understand that core.autocrlf=true in git will cause CRLF to LF translations.

However when I type : git config core.autocrlf

I see: false

However, when I stage modified files that are already in the repo, I still get these warnings:

Warning: CRLF will be replaced by LF in File1.X.
The file will have its original line endings in your working directory.

My guess is that the repo copy of the file is already set to "autocrlf=true".

Questions: A. How do I query whether a file or git repo is already forcing AutoCrlf? B. How do I turn it autocrlf off?

© Stack Overflow or respective owner

Related posts about git

Related posts about core.autocrlf