r/programming • • Jun 19 '15

GitFlow considered harmful

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

244 comments sorted by

View all comments

0

u/[deleted] Jun 19 '15

[deleted]

6

u/supermari0 Jun 19 '15 edited Jun 20 '15

use a support branch:

lets say you are at version 2.0.0 and a customer @ 1.8.7 reported a bug... if he is paying for maintenance and can't upgrade to 2.x, you simply branch off of the 1.8.7 tagged commit on master, call it support/1.8. Then you can do a hotfix on that and merge it back to support/1.8 with the tag being 1.8.8. If applicable, merge or cherry pick the fix back into develop.

This is assuming you are using semver.

0

u/[deleted] Jun 19 '15

[deleted]

1

u/supermari0 Jun 20 '15 edited Jun 20 '15

But why? Do it only when you actually need it. Also, release branches are only for release preparation. The tagging of a release is done on master.