Lens Studio 的 .gitignore
适用于 Lens Studio 的 8 条忽略规则,可直接复制到您的仓库。
AR镜头制作工具
Lens Studio 的完整 .gitignore
# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 23:01:18 UTC
# 技术:Lens Studio
### Lens Studio ###
# macOS 文件夹设置(桌面服务存储)
.DS_Store
.idea
node_modules
yarn.lock
# Python 字节码缓存目录
__pycache__/
# Python 编译的字节码
*.py[cod]
# Python/Jython 类文件
*$py.class
[Bb]ackup*
这些 Lens Studio 规则实际上忽略了什么
以下列出了每个忽略模式及其加入 .gitignore 的原因。
通用
| 模式 | 忽略的内容 |
|---|---|
.DS_Store |
macOS 文件夹设置(桌面服务存储) |
.idea |
通用 |
node_modules |
js# |
yarn.lock |
通用 |
Python #
| 模式 | 忽略的内容 |
|---|---|
__pycache__/ |
Python 字节码缓存目录 |
*.py[cod] |
Python 编译的字节码 |
*$py.class |
Python/Jython 类文件 |
[Bb]ackup* |
Python # |
如何将此 .gitignore 用于 Lens Studio
- 复制上面的Lens Studio规则,或者直接下载文件。
- 在 Git 仓库根目录创建名为 .gitignore 的文件,并将规则粘贴进去。
- 如果其中一些文件已被跟踪,请运行 git rm -r --cached . 然后再次提交 - Git 仅将忽略规则应用于未跟踪的文件。
- 提交 .gitignore 以便团队中的每个人都共享相同的规则。