sync target folder to repo

Hello All,

I’m trying to sync the “target” folder that is created in dbt after running dbt build, so our repo in azure devops. I saw that in the .gitignore file, target/ was listed, so I figured if I just remove that, it will sync the folder. So I removed target/ from the .gitignore file, committed changes, sync and merged to the main branch, yet the target folder is still not there. I see it in dbt but not in the repo. Any idea how I can sync that folder as well?

don’t commit target folder, ever. You will get a lot of problems with conflict fixing. It better to build dbt project (or compile) during CI and upload artifacts where you need

Note: @kokorin86 originally posted this reply in Slack. It might not have transferred perfectly.