Also called: CRLF, LF, line endings, core.autocrlf
In plain English
Windows uses CRLF line endings, Mac and Linux LF. Mixing them makes every line look changed. * text=auto eol=lf keeps the repo consistent.
Example
Since adding .gitattributes, Windows line endings no longer show up as changes.
Learn more
- gitattributesGit (opens in a new tab)
- Configuring Git to handle line endingsGitHub Docs (opens in a new tab)
Related terms
Added 2026-11-30 · Last reviewed 2026-11-30