Git replaced all of my LF with CRLF - How do I fix this? Git replaced all of my LF with CRLF - How do I fix this? ruby ruby

Git replaced all of my LF with CRLF - How do I fix this?


You likely have the core.autocrlf attribute set to true

It's a configuration attribute you can set:

http://git-scm.com/docs/gitattributes#_checking_out_and_checking_in

To make sure that is set to false for all Git projects you can do:

git config --global core.autocrlf false

Hope this helps!