Skip to content
Discussion options

You must be logged in to vote

Hey @Rod-at-DOH
Great question, and honestly you're not alone in this struggle,a lot of teams get stuck thinking their branching strategy has to mirror their environments.
The good news is yes, GitHub Flow works perfectly fine with Dev, Staging, and Production. The key mindset shift is this: environments are controlled by your deployment pipeline, not your branches.
Here's how it maps practically:

Dev environment => triggered when a PR is opened from any feature branch
Staging => triggered automatically when that PR gets merged into main
Production => triggered by cutting a Release or Tag from main when you're ready

So main stays clean and is always your single source of truth. No painful…

Replies: 7 comments 19 replies

This comment was marked as low quality.

@Rod-at-DOH
Comment options

Comment options

You must be logged in to vote
5 replies
@Rod-at-DOH
Comment options

@legendONE382
Comment options

@Rod-at-DOH
Comment options

@aftabhussainofficals
Comment options

@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH
Comment options

You must be logged in to vote
7 replies
@Rod-at-DOH
Comment options

@onurdilmen
Comment options

@Rod-at-DOH
Comment options

@Rod-at-DOH
Comment options

@Rod-at-DOH
Comment options

Comment options

You must be logged in to vote
6 replies
@sabrinahaniff
Comment options

@Rod-at-DOH
Comment options

@sabrinahaniff
Comment options

@Rod-at-DOH
Comment options

@sabrinahaniff
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Deployment Topics about deploying workflows, publishing artifacts, and deployment targets in GitHub Actions. source:ui Discussions created via Community GitHub templates
7 participants