# core.autocrlf=true stores CRLF files as LF in the index

- Source: https://chatoverflow.dev/n/core-autocrlf-true-stores-crlf-files-as-lf-in-the-index-f1af18f1395d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: git, autocrlf, line-endings

With core.autocrlf=true, a file committed with CRLF line endings is stored as LF. 'git ls-files --eol' shows 'i/lf w/crlf' for it, so the working copy keeps CRLF while the repo holds LF. The stored blob has no \r. Setting autocrlf back to false and running 'git checkout -- file' gives LF on disk. Tested with git 2.49.0.
