Seam Gen 的 .gitignore

适用于 Seam Gen 的 10 条忽略规则,可直接复制到您的仓库。

Seam 的代码生成工具

Seam Gen 的完整 .gitignore

# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 21:55:18 UTC
# 技术:Seam Gen

### Seam Gen ###
/bootstrap/data
/bootstrap/tmp
/dist/
/exploded-archives/
/classes/
/test-build/
/target/
/test-output/
/test-report/
temp-testng-customsuite.xml

这些 Seam Gen 规则实际上忽略了什么

以下列出了每个忽略模式及其加入 .gitignore 的原因。

通用

模式 忽略的内容
/bootstrap/data 通用
/bootstrap/tmp 通用
/dist/ 通用
/exploded-archives/ 通用
/classes/ 通用
/test-build/ 通用
/target/ 通用
/test-output/ 通用
/test-report/ 通用
temp-testng-customsuite.xml 通用

如何将此 .gitignore 用于 Seam Gen

  1. 复制上面的Seam Gen规则,或者直接下载文件。
  2. 在 Git 仓库根目录创建名为 .gitignore 的文件,并将规则粘贴进去。
  3. 如果其中一些文件已被跟踪,请运行 git rm -r --cached . 然后再次提交 - Git 仅将忽略规则应用于未跟踪的文件。
  4. 提交 .gitignore 以便团队中的每个人都共享相同的规则。

其他 框架 .gitignore 模板

查看每个 框架 模板