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."
Written by Matt Hernandez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#