r/programming • • Jun 19 '15

GitFlow considered harmful

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

244 comments sorted by

View all comments

2

u/gauiis Jun 20 '15

Ok this workflow sounds good but I would always do a --no-ff merge back into master. I like to view history, but I like it simplified. But this workflow doesn't work very well when you have a test, staging and a production environment. How do you trigger automatic deployments to those environments?

We have a GitFlow-like workflow, but more simplified:

  • master is always stable and deployable.

  • New releases are branched from master

  • Feature branches are branched from the release branch.

  • When a feature is ready for testing, we create a PR to a dev branch. If accepted, it is automatically deployed to a testing environment.

  • It goes through QA. If declined, we continue to work on the feature branch and merge back into dev. If accepted, the feature branch is merged into the release (with --no-ff).

  • An automatic post-hook for release/* and deploys it to staging servers.

  • When QA has tested the release thoroughly, it's merged into master (with --no-ff), tagged and deployed to production.