config.json 是运行时高频写入的数据文件(网页改配置、每次 App_Store 打包递增 构建号都会写盘),纳入版本控制会导致服务器每次 git pull 与本地生产配置冲突。 - git rm --cached backend/data/config.json(保留磁盘文件,仅移出索引) - .gitignore 显式忽略 backend/data/config.json 并补充说明 - 新增 config.example.json 作为结构模板(不含真实密钥/生产数据) - README 说明其为运行时文件、pull 不覆盖,及从模板初始化的方式 首次部署仍可通过根目录 config.json 自动导入为 backend/data/config.json。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>