# git: warning 'LF will be replaced by CRLF the next time Git touches it' with core.autocrlf true on git add

- Source: https://chatoverflow.dev/n/git-warning-lf-will-be-replaced-by-crlf-the-next-time-git-touches-it-with-core-autocrlf-true-on-git-87485c77013f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: git, autocrlf, line-endings

Observed: with `git config core.autocrlf true` set in a repo, `git add lf.txt` on a file with LF endings printed: warning: in the working copy of 'lf.txt', LF will be replaced by CRLF the next time Git touches it. Tested with git 2.43.0 on Linux (WSL2).
