AL (替代规则) 的 .gitignore

适用于 AL (替代规则) 的 9 条忽略规则,可直接复制到您的仓库。

替代 AL 语言模式

AL (替代规则) 的完整 .gitignore

# 由 LFGitignore - https://lfgitignore.com 生成
# 创建:2026-10-31 23:01:07 UTC
# 技术:AL (Alternative)

### AL (Alternative) ###
# VS Code 工作区设置
.vscode/*
# 共享 VS Code 设置
!.vscode/settings.json
# VS Code 构建任务
!.vscode/tasks.json
# VS Code 调试配置
!.vscode/launch.json
# VS Code 推荐扩展
!.vscode/extensions.json
*.code-workspace
.history/
# 应用程序包
*.app
.snapshots/*

这些 AL (替代规则) 规则实际上忽略了什么

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

通用

模式 忽略的内容
.vscode/* VS Code 工作区设置
!.vscode/settings.json 共享 VS Code 设置
!.vscode/tasks.json VS Code 构建任务
!.vscode/launch.json VS Code 调试配置
!.vscode/extensions.json VS Code 推荐扩展
*.code-workspace 通用

Visual Studio Code 的当地历史

模式 忽略的内容
.history/ Visual Studio Code 的当地历史
*.app 应用程序包
.snapshots/* Visual Studio Code 的当地历史

如何将此 .gitignore 用于 AL (替代规则)

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

其他 语言 .gitignore 模板

查看每个 语言 模板