Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • 4
    To fix all line endings in a specific file, if using Sublime Text, you can go to View -> Line Endings and click on Unix. Commented Mar 27, 2015 at 15:58
  • 1
    What exactly does this ^M means? Is it a windows or linux newline? Or is it just a "different" newline compared to the other newlines in the file?
    – buhtz
    Commented Jun 22, 2016 at 19:01
  • Good one, I think it's just a "different" newline (different than most others)
    – gitaarik
    Commented Jun 23, 2016 at 12:11
  • 4
    -1 as reinstalling git to accomplish git config --global core.autocrlf true is overkill, and the anti-Windows/anti-CR campaign seems tangential to the question.
    – RJFalconer
    Commented Jan 29, 2020 at 17:35
  • 1
    should'nt it be *.ext text eol=lf inplace of of crlf ? I think that was a typo, that noone noticed ! Commented Nov 19, 2020 at 23:35