Plone 的 .gitignore

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

内容管理系统

Plone 的完整 .gitignore

# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 23:48:30 UTC
# 技术:Plone

### Plone ###
# 构建输出目录
build/
*.pyo
# Eclipse 输出目录
bin/
*.tmp*
# 编译消息目录
*.mo
# Python egg 包
*.egg
# 发行目录
dist/
*.egg-info
.*.cfg
*.pyc
# Python 开发用 egg 包
develop-eggs/
# 下载的文件
downloads/
# Python egg 包
eggs/
fake-eggs/
# Buildout 组件
parts/
var/

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

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

通用

模式 忽略的内容
build/ 构建输出目录
*.pyo 通用
bin/ Eclipse 输出目录
*.tmp* 通用
*.mo 编译消息目录
*.egg Python egg 包
dist/ 发行目录
*.egg-info 通用
.*.cfg 通用
*.pyc 通用
develop-eggs/ Python 开发用 egg 包
downloads/ 下载的文件
eggs/ Python egg 包
fake-eggs/ 通用
parts/ Buildout 组件
var/ 通用

如何将此 .gitignore 用于 Plone

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

其他 内容管理系统 .gitignore 模板

查看每个 内容管理系统 模板