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]

4

u/aurisor Jun 19 '15

That's what tags are for. You branch off the tag if you need to do a point release.

8

u/killer_storm Jun 19 '15

OK so suppose you've released version 1.2.0 and started working on 1.3.0.

There is a bug in 1.2.0 and 1.3.0 isn't ready yet, so you use 1.2.0 tag to create a new branch, let's say 1.2-fix, and fix a bug there to make a release 1.2.1. Then you delete 1.2-fix branch.

Then there is another bug, so you now create a branch from tag 1.2.1 and make a fix. Delete branch.

Then there is another one...

You know what, instead of creating a new branch for each fix you can just have an 1.2.x branch which will automatically track the latest 1.2.x release (tag).

3

u/aurisor Jun 19 '15

Depends on the product. If you're developing say, Android, you'll want long-running release branches. If you're doing a web app, tags are probably sufficient.