Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore files via .dbtignore #2043

Closed
1 task done
jtcohen6 opened this issue Sep 21, 2022 · 2 comments
Closed
1 task done

Ignore files via .dbtignore #2043

jtcohen6 opened this issue Sep 21, 2022 · 2 comments
Assignees
Labels
content Improvements or additions to content dbt-core v1.3 Docs impact for the v1.3 release (Oct 2022) improvement Use this when an area of the docs needs improvement as it's currently unclear

Comments

@jtcohen6
Copy link
Collaborator

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+

@jtcohen6 jtcohen6 added content Improvements or additions to content improvement Use this when an area of the docs needs improvement as it's currently unclear dbt-core v1.3 Docs impact for the v1.3 release (Oct 2022) idea Proposes an idea for new content labels Sep 21, 2022
@jmg-duarte
Copy link

Does .dbtignore support path "inclusion"?

models/
!models/special_ones # only includes this one

@lostmygithubaccount
Copy link
Contributor

@jmg-duarte I think so? if it's supported in a .gitignore, it should be supported in .dbtignore -- if you find otherwise please open an issue in the dbt-labs/dbt-core repository: https://github.com/dbt-labs/dbt-core/issues/new/choose

closing this as completed by #2245

@runleonarun runleonarun removed the idea Proposes an idea for new content label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content dbt-core v1.3 Docs impact for the v1.3 release (Oct 2022) improvement Use this when an area of the docs needs improvement as it's currently unclear
Projects
None yet
Development

No branches or pull requests

4 participants