Skip to content

Ignore files via .dbtignore #2043

@jtcohen6

Description

@jtcohen6

Contributions

  • I have read the contribution docs, and understand what's expected of me.

Link to the page on docs.getdbt.com requiring updates

Probably makes sense to create a new page for this.

Users can define a .dbtignore file that uses the exact same syntax as .gitignore:

As the name suggests, dbt will ignore these files. They won't be treated as part of your dbt project.

models/
├─ include_these/
├─ but_not_this/
# .dbtignore
models/but_not_this/*

What part(s) of the page would you like to see updated?

Additional information

dbt-labs/dbt-core#5897

Note: This will only be available in v1.3+

Metadata

Metadata

Labels

contentImprovements or additions to contentdbt-core v1.3Docs impact for the v1.3 release (Oct 2022)improvementUse this when an area of the docs needs improvement as it's currently unclear

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions