gitflow.com

Git workflows,
explained.

Learn the Gitflow branching model, see how it compares to GitHub Flow and trunk-based development, and get hands-on with step-by-step Git tutorials.

The Gitflow branching modelmain holds tagged releases. develop branches from main. A feature branch comes off develop and merges back. A release branch comes off develop, then merges into main (tagged v1.1) and back into develop. A hotfix branch comes off main, then merges into main (v1.0.1) and develop.mainhotfix/*release/*developfeature/*v1.0v1.0.1v1.1
Time flows left to right. Solid lines are branches; dotted lines are "merge back" so develop gets the fix too.
Pick your flow

Four workflows, one question: how does your team ship?

Compare them side by side →

Tutorials

From first commit to tagged release

One Git tip a week

Short, practical, no spam. Get the free printable Gitflow cheat sheet when you join.

Newsletter launching soon.