I mistakenly committed some files with the CRLF line endings.
Now I set core.autocrlf = false and fixed the files locally (in the editor).
Is there a way to fix this (e.g., using some combination of rebase -i &c) so that CRLF completely disappear from history permanently?
I mentioned:
git add --renormalize ., which should help apply any.gitattributes/git configchange.git ls-files --eol, which help to list files with their EOL, for diagnostics.Using a
git rebase -x, you could call a script which wouldgit add --renormalize ., to make sure your local Git config is applied.Guildenstern also points out in the comments to
git test fixSee
git test fixin action here.