# Avoid running builds for branches without a config

**URL:** <https://discuss.circleci.com/t/avoid-running-builds-for-branches-without-a-config/23656>\
**Category:** Build Environment\
**Created:** [July 17, 2018, 8:11pm UTC](https://discuss.circleci.com/t/avoid-running-builds-for-branches-without-a-config/23656 "2018-07-17T20:11:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickael.gagne](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@mickael.gagne](https://discuss.circleci.com/u/mickael.gagne)\
**Post date:** [July 17, 2018, 8:11pm UTC](https://discuss.circleci.com/t/avoid-running-builds-for-branches-without-a-config/23656/1 "2018-07-17T20:11:45Z")

</div>

Hi,

I’m currently exploring CircleCI and something bothers me a bit.  
We have hundreds of branches on a repo, but I only want CircleCI to build for the new branches from now on, which means only the branches that have that config.yml file.  
Right now, even when someone pushes on an old branch it tries to build it even though there’s no config file in that branch. Does someone know how we can skip build for all those olders branches without having to commit on each of them?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [October 15, 2018, 8:12pm UTC](https://discuss.circleci.com/t/avoid-running-builds-for-branches-without-a-config/23656/2 "2018-10-15T20:12:00Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
