chore: remove .pi config from git tracking

.pi 是本地持久化配置目录,不应上传到仓库。
从追踪中移除所有 .pi 文件,并在 .gitignore 顶部添加整体排除规则。
同时修复 pre-commit hook 在 gitignore 文件重 add 时不报错。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-21 19:45:14 +08:00
parent 0d8ea01b43
commit 9ed9ed91dd
18 changed files with 4 additions and 883 deletions

View File

@@ -38,7 +38,7 @@ fi
# Restage files that were previously staged and may have been modified by formatting
for file in $STAGED_FILES; do
if [ -f "$file" ]; then
git add "$file"
git add "$file" 2>/dev/null || true
fi
done