Skip to content
BENIBIX Learn

Git Flow

Development🔀 Version ControlTeam Workflows

Also known as Gitflow, git-flow, GitFlow Workflow

A way to use branches. It has main, develop, feature, release and hotfix branches.

Think of it like

Think of it like a busy kitchen with stations. Food moves from prep, to the cook, to the pass, in a set order.

Example

Lucy's team ships an app every three months. They use Git Flow, with a release branch for each version.

Why it matters

It suits apps shipped in versions. Each release can be kept apart and fixed on its own.

Definition

Git Flow is a branching strategy with two long-lived branches and three short kinds. Main holds what is live, and develop holds the next release. Feature branches come off develop and merge back to it. A release branch moves develop into main. A hotfix branch fixes main fast and is merged into both.
Git Flow has five kinds of line. They are main, develop, feature, release and hotfix.

Common mistake

Using Git Flow for a website shipped many times a day. Its author suggests something simpler for that.

Key takeaways

  1. 1
    Two long branches. Main and develop live on.
  2. 2
    Three short kinds. Feature, release and hotfix.
  3. 3
    Made for versions. Best for planned releases.

Learn it properly