git config core.autocrlf true

Shell
git config core.autocrlf true
Source

Also in Shell: