Line Ending¶
Force line-endings to LF¶
git config core.autocrlf false
or either in .gitignore or ./git/config:
[core]
autocrlf = false
Keep the same line-endings¶
Keep the no matter you are working on Windows or Linux:
git config core.autocrlf input
or either in .gitignore or ./git/config:
[core]
autocrlf = input