From 6afaf39d5a48ef6ece3b5cb22f81c13c82f74664 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 14 Mar 2020 21:29:43 +1300 Subject: [PATCH] .gitattributes default eol=lf for all text source used mainly by my win10 desktop github, it would pop up a warning that lf was going to be converting LF to CRLF https://github.com/desktop/desktop/issues/3841 provided this solve --- .gitattributes | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitattributes b/.gitattributes index d1b376527..06be3cb43 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,15 +1,13 @@ # Set the default behavior, in case people don't have core.autocrlf set. * text=auto +* text eol=lf # Explicitly declare text files you want to always be normalized and converted # to native line endings on checkout. # Declare files that will always have LF line endings on checkout. -*.yml text eol=lf -*.sh text eol=lf # Declare files that will always have CRLF line endings on checkout. -*.cs text eol=crlf # Denote all files that are truly binary and should not be modified. *.png binary