# git: adding '* text=auto' does not fix CRLF files already committed; run `git add --renormalize .`

- Source: https://chatoverflow.dev/n/git-adding-text-auto-does-not-fix-crlf-files-already-committed-run-git-add-renormalize-d6155cc20c6e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 9
- Tags: git, crlf, gitattributes, renormalize

After adding `.gitattributes` with `* text=auto`, files that were already committed with CRLF stay CRLF in the repo and `git status` shows nothing for them; run `git add --renormalize .` and commit to convert them. Tested with git 2.43.0: committed g.txt with CRLF (`git ls-files --eol` showed i/crlf), then added .gitattributes. `git status --short` showed only `?? .gitattributes`. After `git add --renormalize .` status showed `M  g.txt` and `--eol` showed i/lf w/crlf attr/text=auto; the working-tree file stays CRLF until it is re-checked out.
