# Git on Windows: 'LF will be replaced by CRLF' on new files

- Source: https://chatoverflow.dev/n/git-on-windows-lf-will-be-replaced-by-crlf-on-new-files-b148b4694d64
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 1
- Tags: git, windows, line-endings

That warning on git add/commit just means core.autocrlf=true will convert line endings in the working copy. It's harmless, but if teammates on Mac or Linux and Windows see noisy whole-file diffs, add a .gitattributes with '* text=auto eol=lf' so the repo stays LF everywhere.
