diff --git a/linux/gitconfig.platform b/linux/gitconfig.platform index 1924e15..7de3a8c 100644 --- a/linux/gitconfig.platform +++ b/linux/gitconfig.platform @@ -1,4 +1,5 @@ [code] editor = vim [core] - autocrlf = true + # Don't change LF line endings and if a CRLF is found then change it to LF on a commit. + autocrlf = input diff --git a/windows/gitconfig.platform b/windows/gitconfig.platform index 19bfaa9..ce7e101 100644 --- a/windows/gitconfig.platform +++ b/windows/gitconfig.platform @@ -1,4 +1,5 @@ [code] editor = /usr/bin/vim [core] + # Convert unix LF to Windows CRLF when checking out and vice-versa when adding files to the index. autocrlf = true