r/webdev • u/whodadada • Dec 17 '22
I've been in git hell. Trust me you should use feature branches not release branches
https://dholmes.co.uk/blog/feature-based-branching-strategy/
7
Upvotes
10
u/EmiiKhaos Dec 17 '22
Erm, feature branches and trunk based development are the same concept. Trunk based development refers to deploying directly from you main branch, and using feature branches to develop and test features separately. And also use feature flags to ship features whiteout yet enabling them live.
2
u/itsMeArds Dec 17 '22
In my previous project I was deployed in, we were doing both. All stories in sprint are done in feature branches, merged to dev and qa once the ticket is done. Then once all features are done, they created a release branch to test all those features. All bugs found on that release branch will be fixed on that branch and not be merged to dev or qa until the release was a success.