Unlimited environments thanks to branch deploys
Tags: netlify, hosting, workflow, git
Published: 2021-12-05 17:57:43

---
title: Unlimited environments thanks to branch deploys
published: true
description: With Netlify's Branch Deploys, you can say goodbye to the headaches of replicating your build and hosting environments for staging, testing, production and so on. Branch, push, done.
tags: Netlify, Hosting, Workflow, Git
cover_image: https://www.netlify.com/img/blog/og-branch-deploys.png
canonical_url: https://www.netlify.app/blog/2021/12/05/unlimited-environments-thanks-to-branch-deploys/
series: Netlify - a feature a day 2021
---

> Throughout December we'll be [highlighting a different Netlify feature each day](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys). It might just be the thing you need to unlock those creative juices, and [dust off that domain](https://www.netlify.com/blog/2021/12/01/dusty-domains-your-forgotten-domains-raise-money-for-charity/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys) you registered but never deployed! Keep an eye [on the blog](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys) and on [Twitter](https://twitter.com/netlify) for each feature!

With Branch Deploys, you can say goodbye to the headaches of replicating your build and hosting environments for staging, testing, production and so on.

Now, you can have unlimited identical environments within Netlify's [build](https://www.netlify.com/products/build/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys) and [hosting infrastructure](https://www.netlify.com/products/edge/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys) simply by creating a branch in your code repository and letting Netlify know that you'd like to build and serve that too.

Each branch of the code repository for your site gets a URL on an appropriately-named subdomain which tracks the head of the branch. And by default, each one is configured in just the same way, and is served from identical hosting infrastructure. 

The days of trying to configure each environment identically, or troubleshoot their differences are over!

![Configuring which branches get deployed in the Netlify Admin](https://d33wubrfki0l68.cloudfront.net/54a71a21d493b23c035091683e95818f5c9cc556/b75c9/images/site-deploys-allowed_branches.png "Branch deploys")

You can tell Netlify to deploy every branch it finds in your repository, or just some specified branches, or ignore them all together. Visit the Build and Deploy section of your site's admin page to configure it just how you'd like.

## More information

- [From the docs: Branches and Deploys](https://docs.netlify.com/site-deploys/overview/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys#branches-and-deploys)
- [Get full control over your branch deploys](https://www.netlify.com/blog/2017/11/16/get-full-control-over-your-deployed-branches/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys)
- [Netlify Build](https://www.netlify.com/products/build/?utm_campaign=featdaily21&utm_source=devto&utm_medium=blog&utm_content=branch-deploys)