Reputation: 8374
I am trying to follow the git flow process to deploy my backend service. The backend service is a graphQL API and we have a golden rule of NEVER break backward compatibility.
I can't see why do I need a release branch. If I am not breaking any backward compatibility what I am going to test on release environment?
New Feature Development
Upvotes: 0
Views: 635
Reputation: 24406
The idea of using a release branch in git flow is that you can take a segment of the develop branch which you know is in a good condition, bug fix it as necessary then merge that into master which is then back merged into develop again.
If you're merging develop into master (skipping release) that's fine, but you'll need to be extra careful that you're not accidentally taking unstable/untested develop branch commits. This is what release branches explicitly separate the risk of.
Git flow is a branching strategy, but in my experience no branching strategy suits every project equally. You should draw ideas from various places and find something that suits your project best. Git flow is a great approach in general though.
Upvotes: 1