1
edit
Changes
→Updated discussion tip
git config --global unset core.eol
git config --global core.eol true
git ls-files -z | xargs -0 rm;
git checkout .
</pre>
That should be enough to avoid checking out crlf in the future. Deleting all files/directories in and to checkout the repo directory except for the .git directory and checking out again should give the user with lf line endings for all files checked out.