Vladimir Nikishkin <lockyw...@gmail.com> writes: > I want to have LF line endings in the repository and CRLF endings in > the working copy. (Because I use windows-exclusive tools to develop.) > > But for start I have my code with LF endings, because I got it from a > fellow developer, who develops on UNIX, with LF line endings.
I somehow suspect that perhaps the way you "got it" from the other developer is wrong in the first place. Did you make a zip archive or something and extracted it? That's a wrong way to do a hand-off. If you "git clone" to have your own copy from the other developer, then your working tree files will follow what your local convention is. Also you do not have to worry about malicious commands left inside .git/config when you made a bit-for-bit copy of the repository and the working tree.