From 4cb150c7fbb6f03e3c392cf63d7f7c072d6e0141 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 10 Aug 2026 15:20:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B5=B1=E4=B8=80=E6=8F=9B=E8=A1=8C=E7=AC=A6?= =?UTF-8?q?=E7=82=BA=20LF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根本原因: Windows 編輯器存檔時把 src/App.tsx 混入 CRLF,造成 git diff 出現整檔 572/565 行的假差異,難以審閱。 影響: 之後任何人在任何編輯器存檔,都不會再混入 CRLF 汙染 diff。 修法: 新增 .gitattributes 設定 `* text=auto eol=lf`,checkout 與 commit 一律正規化為 LF。 Co-Authored-By: Claude Fable 5 --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf