LemonStand 的 .gitignore
适用于 LemonStand 的 20 条忽略规则,可直接复制到您的仓库。
电商平台
LemonStand 的完整 .gitignore
# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 23:58:03 UTC
# 技术:LemonStand
### LemonStand ###
boot.php
index.php
install.php
/config/*
!/config/config.php
/controllers/*
/init/*
/logs/*
/phproad/*
/temp/*
/uploaded/*
/installer_files/*
/modules/backend/*
/modules/blog/*
/modules/cms/*
/modules/core/*
/modules/session/*
/modules/shop/*
/modules/system/*
/modules/users/*
这些 LemonStand 规则实际上忽略了什么
以下列出了每个忽略模式及其加入 .gitignore 的原因。
通用
| 模式 | 忽略的内容 |
|---|---|
boot.php |
通用 |
index.php |
通用 |
install.php |
通用 |
/config/* |
通用 |
!/config/config.php |
通用 |
/controllers/* |
通用 |
/init/* |
通用 |
/logs/* |
通用 |
/phproad/* |
通用 |
/temp/* |
通用 |
/uploaded/* |
通用 |
/installer_files/* |
通用 |
/modules/backend/* |
通用 |
/modules/blog/* |
通用 |
/modules/cms/* |
通用 |
/modules/core/* |
通用 |
/modules/session/* |
通用 |
/modules/shop/* |
通用 |
/modules/system/* |
通用 |
/modules/users/* |
通用 |
如何将此 .gitignore 用于 LemonStand
- 复制上面的LemonStand规则,或者直接下载文件。
- 在 Git 仓库根目录创建名为 .gitignore 的文件,并将规则粘贴进去。
- 如果其中一些文件已被跟踪,请运行 git rm -r --cached . 然后再次提交 - Git 仅将忽略规则应用于未跟踪的文件。
- 提交 .gitignore 以便团队中的每个人都共享相同的规则。