What branches do you really need in a real project

Published on 2026-09-12 by frfrand

Famous workflows solve problems you might not have. Three models, what each one is for, and how to choose based on how you publish and how many there are.

What branches do you really need in a real project

Short answer: how many branches you need depends on how you publish. If you deploy several times a day, a single branch and very short-lived work branches are enough; if you publish a few times a week, two branches (integration and production) provide good control; Git flow is only justified if you maintain several versions in parallel.

When someone searches for "how to organize branches," they find complex diagrams with five different types. Most were designed for a specific context that may not be yours.

Before choosing a model, it's worth answering one question: how do you publish?

Model 1: a single branch

Everyone works on main. Branches exist but last hours or a day, and are integrated right away.

It works very well when you publish frequently and have tests you trust. It's what most teams that deploy several times a day use.

What it requires to not be a disaster:

  • Automated tests that run on every integration and that you truly trust.
  • Feature toggles: if something isn't ready, it's integrated turned off instead of staying on a branch.

That last part is the hardest to adopt and what makes the model viable. It allows integrating incomplete code without it reaching users.

Model 2: two branches

One integration branch (main) and one production branch.

  • main receives everything that is ready and deploys automatically to staging.
  • When you want to publish, you integrate main into the production branch, and that triggers the deployment to the live site.

Publishing is a merge. Rolling back is a revert. Anyone on the team understands the system status by looking at two branches.

For a team of two to ten people that publishes a few times a week, this model is hard to beat in terms of the balance between simplicity and control.

Model 3: Git flow

The famous one, with development, feature, release, hotfix, and master branches.

It was designed in 2010 for software with versions: a program that is downloaded, where versions 2.3 and 2.4 coexist, and you need to be able to patch an old version without adding the new stuff.

If that is your case (a library, a desktop application, something installed on clients), Git flow solves real problems.

If you have a web application where the only version that exists is the one running, Git flow adds ceremony without solving anything. The author himself published a note years later saying exactly that.

How to choose, in one question

Do you need to maintain old versions in parallel?

  • Yes → Git flow or something similar.
  • No, and you publish several times a day → a single branch with switches.
  • No, and you publish a few times a week → two branches.

Details that matter more than the model

Prefixed names. feature/, fix/, chore/. Allows filtering and understanding at a glance. And if you include the ticket number, traceability comes for free.

Delete integrated branches. A repository with eighty old branches is pure noise. Most platforms do it automatically when closing a pull request.

Protect the production branch. No direct push, mandatory review. Not out of distrust: because at seven in the evening anyone can mistake the branch.

Short branches. This matters more than everything above combined. A poorly chosen model with two-day branches works well. The best model in the world with one-month branches, does not.

In ArduMaker each deployment is associated with a branch, so you can have the same repository published twice on the same VPS: one from main to a staging subdomain and another from production to the real domain, each with its own service.

A branching scheme for a small project

For an application you deploy on ArduMaker, main can represent the stable version and feature/* branches can host changes under review. Before deploying, run tests, merge, and record the published commit. If your team needs staging, document which branch and environment correspond.

Do not create permanent branches without an operational reason. A simple flow known to everyone usually reduces conflicts and divergent versions.

Related: Why branches exist · What is Git rebase.

Frequently asked questions

What is trunk-based development? Everyone working on a main branch with very short-lived branches, integrating frequently and hiding incomplete work behind feature toggles.

Does Git flow work for a web application? Rarely. It was designed for software with coexisting versions; on a website where only the running version exists, it usually adds ceremony without solving anything.

How do I protect the production branch? By blocking direct pushes and requiring review via pull request. Most platforms allow this as a branch rule.

  • Git
  • ramas
  • flujo de trabajo
  • equipos
  • producción

Keep reading

All articles · VPS plans