From ca023844c9b381c0d2791fbbc4b81026a7a3dcda Mon Sep 17 00:00:00 2001 From: starmen1265 Date: Tue, 9 Jun 2026 19:12:38 +0800 Subject: [PATCH] =?UTF-8?q?chore(scripts):=20=E6=96=B0=E5=A2=9Escripts?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/setup-git.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/setup-git.sh diff --git a/scripts/setup-git.sh b/scripts/setup-git.sh new file mode 100644 index 0000000..fa4a4ef --- /dev/null +++ b/scripts/setup-git.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# ChildHood 项目 Git 初始化配置 +# 每台机器 clone 后运行一次: bash scripts/setup-git.sh + +cd "$(git rev-parse --show-toplevel)" || exit 1 + +# 中文路径兼容 —— 防止 UBT 解析 git status 时因八进制转义崩溃 +git config --local core.quotepath false + +echo "[setup-git] core.quotepath=false 已设置"