Changing file line endings to LF in mixed unix/windows environments

Sometimes the developers of a project are working in different environments such as Linux, macOS and Windows. A big problem is the different handling of line endings. Windows uses CR/LF and all unix-based systems are using only LF. The code base should always use LF line endings to avoid problems. So we must tell GIT that we want only LF line endings in our project (the following commands only work in a git repository folder): git config core.eol lf git config core.autocrlf input To set this settings globally for all your git projects, add the –global paramater to the git[…]

Read more