Voltar ao glossario
Git e Controle de Versao

Gitflow

A branching model for Git that defines a strict branching structure designed around project releases, using dedicated branches for features, releases, and hotfixes.

Definicao

Gitflow, introduced by Vincent Driessen in 2010, uses five branch types: main (production code), develop (integration branch), feature/* (new features), release/* (release preparation), and hotfix/* (production fixes). Features branch from develop, releases branch from develop and merge to both main and develop. While popular, Gitflow is considered heavyweight for continuous delivery — many teams prefer trunk-based development.

Por que e importante

Gitflow provides clear rules for managing releases in projects with scheduled release cycles. However, for teams practicing continuous deployment, simpler models like trunk-based development may be more appropriate. Understanding Gitflow helps when joining teams that use it.

Exemplo

Following Gitflow, a team branches feature/payment-api from develop, completes work, merges back to develop, then creates release/v2.1.0 for final testing before merging to main and tagging the release.

Termos relacionados

gitflowwhat is gitflowgit flow branchinggitflow workflow

Automatize Code Review com diffray

Sistema de IA multi-agente para code review. Encontra bugs, vulnerabilidades de seguranca e problemas de arquitetura automaticamente.