Last Updated: February 25, 2016
·
1.272K
· fiveisprime

Normalize CRLF in git

Sets global config to auto-fix CRLF then normalize the current repository.

git config --global core.autocrlf true && git rm --cached -r . && git diff --cached --name-only -z | xargs -0 git add && git commit -m "Fix CRLF."