From 69cef0e4949438fcabf0d86a1a967845804630b2 Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Mon, 23 Nov 2020 13:17:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=81=BF=E5=85=8D=20windows=20=E4=B8=8B=20?= =?UTF-8?q?git=20=E4=BF=AE=E6=94=B9=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..a4528c084 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +# 避免 windows 下自动转 +*.md text eol=crlf +*.ts text eol=crlf +*.js text eol=crlf +*.tsx text eol=crlf +*.jsx text eol=crlf +*.scss text eol=crlf +*.css text eol=crlf +*.svg text eol=crlf +*.json text eol=crlf From 4fad6307074b8308bdbea981a12a27db216353c4 Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Mon, 23 Nov 2020 13:18:29 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=81=BF=E5=85=8D=20windows=20=E4=B8=8B=20?= =?UTF-8?q?git=20=E4=BF=AE=E6=94=B9=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitattributes b/.gitattributes index a4528c084..54d708211 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,10 +1,2 @@ # 避免 windows 下自动转 -*.md text eol=crlf -*.ts text eol=crlf -*.js text eol=crlf -*.tsx text eol=crlf -*.jsx text eol=crlf -*.scss text eol=crlf -*.css text eol=crlf -*.svg text eol=crlf -*.json text eol=crlf +* text eol=lf From 0ebb327076468a58eb8572a0ad9a379a84800ac3 Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Mon, 23 Nov 2020 14:53:32 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=81=BF=E5=85=8D=20jpg/png/eot=20?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=BD=AC=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index 54d708211..e53c02a40 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,5 @@ # 避免 windows 下自动转 * text eol=lf +*.jpg -text +*.png -text +*.eot -text