DEV Community

Discussion on: I'm a Git Master, Ask Me Anything

Collapse
 
tirthaguha profile image
Tirtha Guha

What would be your branching model for a multi non-prod single prod system, where new features has to be signed off in non prods first, before they make it to prod? How would you set up your CI/CD?

Collapse
 
gonedark profile image
Jason McCreary

I'd still use GitHub Flow. The rest is a deployment process. So promote the master branch up through the environments to get signed off. Once approved then deploy master to Prod.

Admittedly the happy path is easy. Things get hard when a feature is not approved. In which case you could use Git to revert it or adopt a strategy like feature flags.

In the end, I don't consider this solely a Git problem. It's something that needs to be solved through code, deployment, and business strategies.

Collapse
 
tirthaguha profile image
Tirtha Guha

'It's something that needs to be solved through code, deployment, and business strategies'
thanks for an honest answer.