DEV Community

Discussion on: ELI5: The git error - 'CRLF would be replaced by LF in...'

Collapse
 
jsn1nj4 profile image
Elliot Derhay • Edited

It may depend on whether there's a mix of line ending styles in a file. I haven't really looked into it myself. I just got sick of the warnings at some point and switched completely over to LF.

If I remember correctly, there may also be a way to completely disable warnings from Git. But I think it disables all of them, not just this one.

Happy to help when I can. Sorry I wasn't able to help resolve that specific issue.

Thread Thread
 
hiboabd profile image
Hibo Abdilaahi

Ahhh thanks I’ll look into switching for the future! No problem at all, you’ve already been helpful and I was able to easily get past the error. It’s just not the first time it’s happened so I’m wondering how to prevent it full stop, if possible.