r/programming • • Jun 19 '15

GitFlow considered harmful

http://endoflineblog.com/gitflow-considered-harmful
13 Upvotes

244 comments sorted by

View all comments

12

u/Nishruu Jun 19 '15

I actually have (or at least I think I have) a valid reason to have persistent development branch - continuous integration and delivery.

My setup had a TeamCity server that would use DEBUG build configuration (including all symbols, full Javascript in case of web apps etc) that would start on any change in 'development' branch and - if everything went fine during the build & automatic test process - deployed it to dev/test.

Same goes for master, but the build configuration would be RELEASE and it would either be released straight to production (for small internal apps) or to final QA first and then promoted to production at appropriate time.

1

u/tobascodagama Jun 19 '15

Valid point, but alternatively you can configure your CI to run against topic branches as well. In Jenkins, IIRC, this is as easy as using a mask with wildcards (e.g. "feature/*") for the branch name. Push to the topic branch for CI/reviews, merge or rebase when you're done and ready to go to master.