Git Flow playground
Type git and git flow commands and watch the branches form. main ships, develop collects the next release, and short-lived branches come and go.
Loading the playground…
The branches
mainWhat is in production. Every commit is a release. ForeverdevelopThe integration branch for the next release. Foreverfeature/*One issue, branched from develop. Until mergedbugfix/*A bug found before release, branched from develop. Until mergedrelease/*Preparing a version: final checks, version number. Until releasedhotfix/*An urgent production fix, branched from main. Until released
The rules
- 1Never commit directly to main or develop.
- 2Features and bugfixes start from develop and return to develop through a pull request.
- 3A release branch is cut from develop, merged into main and back into develop, and tagged.
- 4A hotfix is cut from main, merged into main and develop, and tagged.
Quick commands
The prompt suggests the next Git Flow step: press Tab to write it, Enter to run it, Esc to leave the prompt. ↑ ↓ for history. Click a commit to paste its hash.