From b8d57af62234c54f749bf94250629f75e2cb9799 Mon Sep 17 00:00:00 2001 From: Orion Date: Thu, 9 Apr 2026 09:09:52 +0800 Subject: [PATCH] =?UTF-8?q?chore(project):=20:see=5Fno=5Fevil:=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E5=BF=BD=E7=95=A5=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8EIDE=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新根目录.gitignore文件,增强对macOS系统文件、IntelliJ IDEA工作区、Java编译输出、Maven/Gradle构建目录以及其他临时目录的忽略规则。同时新增.idea目录下的.gitignore及标准IDE配置文件(misc.xml, modules.xml, vcs.xml),以保持项目配置的整洁与一致性。 --- .gitignore | 81 +++++++++++++++++++++++++++++++++++------------ .idea/.gitignore | 10 ++++++ .idea/misc.xml | 6 ++++ .idea/modules.xml | 8 +++++ .idea/vcs.xml | 6 ++++ 5 files changed, 91 insertions(+), 20 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.gitignore b/.gitignore index 9154f4c..9170f59 100644 --- a/.gitignore +++ b/.gitignore @@ -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/ \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..f6906f2 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# 已忽略包含查询文件的默认文件夹 +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..0e05be0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..7e8a574 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file