for new line, Windows use "CRLF" Linux and Mac use "LF"
git can automatically convert them for you.
if you use windows, you should use this.
but it you are using linux and mac you don't need it.
use this to set : for linux and mac
git config --global core.autocrlf false
git config --global core.autocrlf true