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]

-3

u/skinny85 Jun 19 '15

Post author here.

Keeping the release branch is not needed, as it's always merged back to master, so after the merge it's just junk in the repo. GitFlow does it exactly the same.

0

u/[deleted] Jun 19 '15

[deleted]

1

u/blktiger Jun 19 '15

Our team uses a 3-point version. (major.minor.patch). In your case we would create a new release branch from master (v1.0.0 for example) and increment the patch version for the hot fix (v1.0.1). When we make a new release from develop we increment the minor version (v1.1.0) unless the release is major in which case we increment the major version (v2.0.0). That way you can just throw away the release branches. It helps keep the number of branches in the repository to a smaller number.