Red 的 .gitignore
适用于 Red 的 8 条忽略规则,可直接复制到您的仓库。
全栈编程语言
Red 的完整 .gitignore
# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 22:57:44 UTC
# 技术:Red
### Red ###
*.red
crush.dll
crush.dylib
crush.so
quick-test/quick-test.log
quick-test/runnable/
system/tests/source/units/auto-tests/
tests/source/units/auto-tests/
这些 Red 规则实际上忽略了什么
以下列出了每个忽略模式及其加入 .gitignore 的原因。
Red 编译后的代码
| 模式 | 忽略的内容 |
|---|---|
*.red |
Red 编译后的代码 |
库
| 模式 | 忽略的内容 |
|---|---|
crush.dll |
库 |
crush.dylib |
库 |
crush.so |
库 |
测试期间生成的文件
| 模式 | 忽略的内容 |
|---|---|
quick-test/quick-test.log |
测试期间生成的文件 |
quick-test/runnable/ |
测试期间生成的文件 |
system/tests/source/units/auto-tests/ |
测试期间生成的文件 |
tests/source/units/auto-tests/ |
测试期间生成的文件 |
如何将此 .gitignore 用于 Red
- 复制上面的Red规则,或者直接下载文件。
- 在 Git 仓库根目录创建名为 .gitignore 的文件,并将规则粘贴进去。
- 如果其中一些文件已被跟踪,请运行 git rm -r --cached . 然后再次提交 - Git 仅将忽略规则应用于未跟踪的文件。
- 提交 .gitignore 以便团队中的每个人都共享相同的规则。