How do I force git to use LF under windows?

Posted by Sorin Sbarnea on Stack Overflow See other posts from Stack Overflow or by Sorin Sbarnea
Published on 2010-03-25T16:07:33Z Indexed on 2010/03/25 16:13 UTC
Read the original article Hit count: 166

Filed under:
|

I want to force git to checkout files under Windows using just LF not CR+LF. I checked the two configuration options but I was not able to find the right combination of settings.

I want it to convert all files to LF and keep the LF on the files.

Remark: I used autocrlf = input but this just repairs the files when you commit them. I want to force it to get them using 'LF'.

© Stack Overflow or respective owner

Related posts about git

Related posts about msysgit