chore(project): 🙈 更新项目忽略配置与IDE配置文件

更新根目录.gitignore文件,增强对macOS系统文件、IntelliJ IDEA工作区、Java编译输出、Maven/Gradle构建目录以及其他临时目录的忽略规则。同时新增.idea目录下的.gitignore及标准IDE配置文件(misc.xml, modules.xml, vcs.xml),以保持项目配置的整洁与一致性。
This commit is contained in:
Orion
2026-04-09 09:09:52 +08:00
parent 70ac8d4a12
commit b8d57af622
5 changed files with 91 additions and 20 deletions

81
.gitignore vendored
View File

@@ -1,26 +1,67 @@
# ---> Java
# Compiled class file
######################
# macOS
######################
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes
######################
# IntelliJ IDEA
######################
# 忽略个人工作区配置(如窗口布局、历史记录)
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# 忽略数据库、本地数据源
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# 忽略模块文件(不强制提交 iml
*.iws
*.iml
*.ipr
# IDEA 缓存
out/
######################
# Java 编译输出
######################
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
######################
# Maven
######################
target/
######################
# Gradle
######################
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
######################
# 其他临时目录
######################
bin/
gen/
dist/
release/
tmp/