From 4d89b2a37234da8c3e83b7776c52ec3d77f338d3 Mon Sep 17 00:00:00 2001 From: qianqiuwanzi Date: Wed, 16 Sep 2026 14:09:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=96=B0=E5=A2=9E=20.gitattributes=20?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E8=A1=8C=E5=B0=BE=E5=BD=92=E4=B8=80=E5=8C=96?= =?UTF-8?q?=EF=BC=8C=E6=A0=B9=E6=B2=BB=20LF/CRLF=20=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E5=88=86=E5=8F=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - * -text 让 git 不做任何行尾转换,文本以工作区字节原样存储 - README.md 行尾随仓库统一为 CRLF(此前 HEAD 存 LF 而工作区为 CRLF,属分叉遗留) - 背景:本地仓库存 LF、服务器/Gitea 存 CRLF,同一批改动各自提交产生两条并行历史;现两边格式已统一为 CRLF --- .gitattributes | 4 ++++ README.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..2e73b6c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# 千视科技官网为纯静态站点,部署目标(腾讯云服务器 + 线上 qianshi.cool) +# 统一使用 CRLF 行尾。禁用 git 行尾归一化,保证本地提交/服务器提交/线上文件字节一致, +# 避免同一批改动在本地与服务器各自提交后因 LF/CRLF 差异产生历史分叉。 +* -text diff --git a/README.md b/README.md index cdf2bf0..9860057 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# qianshi - +# qianshi + 千视科技官网 \ No newline at end of file