DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Gitember: Building a Git Client Beyond Commit, Push, and Pull
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Trending

  • Designing a Data Pipeline for Multi-Location Marketing Attribution (Before You Actually Need One)
  • Solving the Stateful Exception: Database Branching and the Unification of CI/CD
  • Choosing Voice AI Infrastructure: 7 Capabilities To Evaluate
  • Static and Dynamic Application Security Testing With IBM Appscan

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. UnifiedFlow: Git Branching Strategy

UnifiedFlow: Git Branching Strategy

In this article, learn pros and cons of UnifiedFlow, as well as how to deploy stable features signed off by QA according to the release plan.

By 
Putthiphong Boonphong
·
Updated Oct. 16, 21 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
15.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Git Branching Strategy

Pros

  • Every branches fork from a stable state.
  • Prevent side-effects (defect/ad-hoc/config) from merging develop into feature, release and main.
  • Group stable features according to release plan.
  • Easily remove features from release.

Cons

  • Require optional merge branch if using with Pull-Request. PR will merge the target branch on your feature; may cause unknown side-effects and stall you for days to fix it.
  • Multiple merge conflicts in develop and release.

Getting Started

init: main

Git branching init

fork: main -> develop

Git Strategy Folk

Features

fork: main -> feature

Git Branching folk

merge: develop <- feature

Git Branching merge

deploy: develop to SIT, test, and approve as Release Candidate by QA

Bug Fixes

fork: main -> bugfix

Git Branching bug fixes folk

merge: develop <- bugfix

Git Branching bug fixes merge

deploy: develop to SIT, test and approve as Release Candidate by QA

Releases

fork: main -> release

Git Releases folk

merge/squash: release <- {bugfix, feature}

Releases merge/squash

deploy: release to UAT, test and sign off by QA

merge: main <- release

Git Release merge

tag: {version: YY.MM.buildNumber}

Git release tag

deploy: main to PROD, test and verify by QA

Hot Fixes

fork: main -> hotfix

Git hot fixes

deploy: hotfix to UAT, test and verify by QA

merge/squash: main <- hotfix

Git merge/squash

tag: {version: YY.MM.buildNumber-hotfix}

Git tag

deploy: main to PROD, test and verify by QA

Update Branches From Main (Stable) Not Develop (Unstable)

merge/rebase: main -> {feature, bugfix}

Git merge

Git

Published at DZone with permission of Putthiphong Boonphong. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Gitember: Building a Git Client Beyond Commit, Push, and Pull
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook