What are the correct step by step commands for gitflow workflow?

224 Views Asked by At
  • What does one complete lifecycle of gitflow look like?
  • Which branch is pushed to production: release or main?

I have done deep research on this topic. But these were the questions whose answers I couldn't find.
Any suggestion gratefully received. Thanks in advance.

1

There are 1 best solutions below

4
On BEST ANSWER

Commonly "master" or "main" is pushed to prod as it's a form of a "stable" release. though this also depends on the type of project/where its used type of deal, internally a company will use the method above, but as an open-source repo it is common for a release to be used instead.

In my own development experience, a base repo will be created. Developers will make branches for features, hotfixes, etc... etc... and then put a PR into a staging environment which once stable and passes unit tests (via CI/CD) will be deployed.

Unsure if this helps much, but is what I think when this question is brought up.