``` git config --global core.autocrlf true git config --global core.safecrlf true ``` 参考文章: http://kuanghy.github.io/2017/03/19/git-lf-or-crlf