chore: 添加 .gitignore 文件以忽略常见构建和编辑器文件

- 忽略 Maven 构建输出目录 target/
- 忽略 Node.js 模块目录 node_modules/
- 忽略日志文件 *.log 和环境变量文件 .env*
- 忽略 IntelliJ IDEA 编辑器相关文件和目录
- 忽略 Eclipse 编辑器相关文件和目录
- 忽略 NetBeans 编辑器相关文件和目录
- 忽略 VS Code 编辑器相关文件和目录
- 忽略 Mac OS 系统文件 .DS_Store
This commit is contained in:
hehh
2025-11-24 23:13:36 +08:00
parent af9a596902
commit dc1f6f0ab9

45
.gitignore vendored Normal file
View File

@@ -0,0 +1,45 @@
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
.trae
node_modules/
**/node_modules
**/*.log
**/.env*
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
.idea
**/.idea
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store