2021-02-05

Git line endings CR-LF

There is a need in some developer teams to use the same settings for line endings of text files that are checked out or commited to Git repositories.
For this there are two options in git config that can be applied:

  • core.safecrlf=false
  • core.autocrlf=input

I am using these settings with great success to achieve the ultimate goal: use Unix line endings whenever possible, even when developing on Windows machine.