浏览代码

chore: 新增 .gitignore(忽略 target/.idea 等构建与IDE产物)

根除 subagent git add -A 误带构建产物的隐患。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jintao.geng 1 月之前
父节点
当前提交
b9a465291d
共有 1 个文件被更改,包括 32 次插入0 次删除
  1. 32 0
      .gitignore

+ 32 - 0
.gitignore

@@ -0,0 +1,32 @@
+# ===== Maven =====
+target/
+*.jar
+*.war
+*.ear
+*.class
+# 保留 maven wrapper
+!.mvn/wrapper/maven-wrapper.jar
+
+# ===== IntelliJ IDEA =====
+.idea/
+*.iml
+*.ipr
+*.iws
+out/
+
+# ===== Eclipse =====
+.classpath
+.project
+.settings/
+bin/
+
+# ===== VS Code =====
+.vscode/
+
+# ===== 日志 =====
+*.log
+logs/
+
+# ===== 操作系统 =====
+.DS_Store
+Thumbs.db