# Can't ignore the \`gh-pages\` branch

**URL:** <https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [February 9, 2016, 12:25pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002 "2016-02-09T12:25:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![knikel](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/knikel/32/1486_2.png) [@knikel](https://discuss.circleci.com/u/knikel)\
**Post date:** [February 9, 2016, 12:25pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/1 "2016-02-09T12:25:25Z")

</div>

Hi, I’ve followed the guidelines on how to blacklist the `gh-pages` branch from being built. However, CircleCI tries to build/test that branch whenever it’s being pushed on, even though it’s ignored and only `master` and `feature-*` branches are whitelisted. I would be grateful for some insights how I could avoid running the `gh-pages` branch at all. Here’s my `circle.yml` file: [https://github.com/mapillary/mapillary-js/blob/master/circle.yml](https://github.com/mapillary/mapillary-js/blob/master/circle.yml)

Cheers!

---

<div class="post-metadata">

**Author:** ![rvetere](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rvetere/32/1904_2.png) [@rvetere](https://discuss.circleci.com/u/rvetere)\
**Post date:** [March 5, 2016, 1:14pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/2 "2016-03-05T13:14:54Z")

</div>

Hi knikel - i’ve had the same problem with ignoring gh-pages branch in my project.

Today i stumbled upon this link: [https://circleci.com/docs/skip-a-build](https://circleci.com/docs/skip-a-build)

By adding a commit message which contains [ci skip] - circleci won’t do anything for this new commit. So i just tried it out by improving my deploy command in my package.json:

“deploy”: “gh-pages -m ‘auto commit [ci skip]’ -d dist”

And this works! The gh-pages branch remains quite now 🙂

---

<div class="post-metadata">

**Author:** ![knikel](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/knikel/32/1486_2.png) [@knikel](https://discuss.circleci.com/u/knikel)\
**Post date:** [March 5, 2016, 3:16pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/3 "2016-03-05T15:16:30Z")

</div>

Thanks @rvetere, works as expected. Ideally I would prefer not to see the `gh-pages` branch in Circle, but that will do for now. Thank you :).

---

<div class="post-metadata">

**Author:** ![ako](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@ako](https://discuss.circleci.com/u/ako)\
**Post date:** [March 16, 2016, 11:31pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/4 "2016-03-16T23:31:16Z")

</div>

@knikel

I was running into this issue as well, but then I realized my branch that I wanted to ignore did not have a `circle.yml` in it.

In order for the ignore config to work, every branch must have a copy of your `circle.yml` in it. Including the `gh-pages` branch (or the branch you want to ignore) for example.

---

<div class="post-metadata">

**Author:** ![tony19](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tony19/32/2375_2.png) [@tony19](https://discuss.circleci.com/u/tony19)\
**Post date:** [April 8, 2016, 2:42pm UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/5 "2016-04-08T14:42:26Z")

</div>

Thanks. That [worked](https://circleci.com/gh/tony19/logback-android/16) for me.

---

<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:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/cant-ignore-the-gh-pages-branch/2002/6 "2018-06-18T11:37:59Z")

</div>


