statementSaid on 2026-11-10
The problem stems from Claude Code writing approved Shell commands into local settings files, which get committed with the project if not ignored by Git.
A statement by post author, said on 2026-11-10. Statements are as reported by the cited publishers — not verified by DecisionGateway.
问题源于 Claude Code 把获准执行的 Shell 命令写入本地设置文件,若未被 Git 忽略就会随项目提交。