I used to get warnings
about LF will be replaced by CRLF
when doing a git commit
.
I played around with autocrlf
but setting it to true
or false
both caused problems. In the end, after this comment (LF will be replaced by CRLF in git - What is that and is it important?) by @Drew Noakes, I just unset it and that fixed the warnings
.
However, now, when I run git diff
I get output like this:
- original line;
+ new line;^M
What's going on and is there any way of getting rid of these pesky ^M
s once and for all?
If it helps, this is my own repo (i.e. I have complete control over the code base) and I'm on a Mac.