我不应该 git 忽略 AWS CDK 创建的 cdk.out 文件夹吗?

Should'nt I git ignore cdk.out folder which is made by AWS CDK?

AWS CDK 创建 cdk.out 项目根目录。我不知道是否应该添加 git 个文件。

如果你使用 cdk init app,你会看到 cdk.out 文件夹在 .gitignore 中。

*.js
!jest.config.js
*.d.ts
node_modules

# CDK asset staging directory
.cdk.staging
cdk.out

不需要将cdk.out添加到git。它只包含不需要在版本控制中的合成 cloudformation 模板等工件。