From 1f39027b78e756daa76f6e791cd7ad03ae3eac15 Mon Sep 17 00:00:00 2001 From: Liu <62609375+ziranl16@users.noreply.github.com> Date: Wed, 4 Jan 2023 18:36:38 +0800 Subject: [PATCH] fix: convert line endings to LF on checkout for all envs (#1448) * Convert line endings to LF on checkout for all envs * fix: convert line endings to LF on checkout for all envs --- .gitattributes | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index b10d97ce..b5a9e8e4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,5 @@ *.go linguist-detectable=true -*.js linguist-detectable=false \ No newline at end of file +*.js linguist-detectable=false +# Declare files that will always have LF line endings on checkout. +# Git will always convert line endings to LF on checkout. You should use this for files that must keep LF endings, even on Windows. +*.sh text eol=lf \ No newline at end of file