- What does one complete lifecycle of gitflow look like?
- Which branch is pushed to production:
release
ormain
?
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.
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.