git --renormalize has no effect

Viewed 259

I have some files stored in git that has LF endings. Somehow it got converted to CRLF in my working tree. I want to renormalize it, i.e. convert it back to LF. Other answers have led me to believe I could use git add --renormalize but it simply doesn't do anything:

$ git config --global core.autocrlf
input

$ git check-attr -a myfile
myfile: text: auto

$ file myfile
myfile: ASCII text, with CRLF line terminators

$ git add --renormalize myfile
$ git status
On branch master
nothing to commit, working tree clean

$ file myfile
myfile: ASCII text, with CRLF line terminators

What am I missing? I'm using Git 2.28.0.

0 Answers
Related