When I clone a repository that uses LF line endings using msysgit on Windows, the checked out files have somehow the CRLF line endings even though my core.autocrlf
is set to false
. Why is that?
Example:
> git config core.autocrlf
false
> git clone https://github.com/wp-cli/wp-cli.git wp-cli
The checked out files have CRLF line endings even though they have LF in the repository itself.
There is a .gitattributes file in the project
This has higher priority than core.autocrlf.
See http://git-scm.com/docs/gitattributes