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.

2
  • 2
    git config core.whitespace cr-at-eol this should be the accepted answer. None of these other fixes work on latest MacOS. Other fixes do seem to work on older Mac OSes. Commented Jun 30, 2023 at 20:52
  • 2
    I chose to apply it only for my local environment with: git config --local core.whitespace cr-at-eol I am on macOS Ventura 13.4.1. This suggestion worked well for me. The suggestions given in other comments had no effect. Commented Oct 2, 2023 at 23:11