Skip to content
Home Tutorials Roadmaps Courses Classroom Training Blog
Log in Join free
Git Beginner Free

Git Flow

Lesson 12 of 17 · Workflow Patterns 71%
1. Getting Started
What is Git?
2. Branching & Merging
Branches & Merging
3. Stashing & Undoing
Git Stash Undoing Changes
5. Tags & Releases
Git Tags
6. Git Hooks & Config
Git Hooks Git Configuration
9. Submodules & Subtree
Git Submodules
10. GitHub Actions
GitHub Actions CI/CD
11. Git Worktrees
Git Worktrees

Git Flow is a branching model with dedicated branches for features, releases, and hotfixes.

Syntax

GIT
main       ← production
  develop  ← integration
    feature/login
    feature/dashboard
  release/v1.0
  hotfix/critical-bug
Git Flow Workflow
BASH
# Git Flow branches:
# main - production
# develop - development
# feature/* - new features
# release/* - release prep
# hotfix/* - production fixes

# Start a feature
git flow feature start user-auth

# Finish feature (merges to develop)
git flow feature finish user-auth

# Start a release
git flow release start 1.0.0

# Finish release (merges to main + develop)
git flow release finish 1.0.0

Up next

Trunk-Based Development

Lesson 13 of 17 · Workflow Patterns