# 忽略所有 .log 文件 *.log # 忽略特定目录(如 node_modules/) node_modules/ # 忽略本地配置文件(但保留示例文件) config.local.json !config.example.json # 忽略 IDE 文件 .idea/ *.iml # 忽略编译输出目录 dist/ build/ test *test*