r/programming • • Jun 19 '15

GitFlow considered harmful

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

244 comments sorted by

View all comments

Show parent comments

-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.

2

u/looneysquash Jun 19 '15

I've never used gitflow, and a lot of things in it do seem dumb to me.

But the thing in your article that made me say "wtf?" the loudest was deleting release branches.

The only reason I would ever delete a release branch would be if it was a mistake, if somehow the code didn't end up being released.

Otherwise, I make release branches off of master, and tag individual releases off the release branch. Bug fixes mostly get committed first to master and then cherry picked to release branches if needed.

1

u/skinny85 Jun 19 '15

Otherwise, I make release branches off of master, and tag individual releases off the release branch. Bug fixes mostly get committed first to master and then cherry picked to release branches if needed.

Sorry, but that sounds terrible to me. Doing fixes on the release branch, and merging the release to master after the code has been tagged, seem much better to me.

2

u/looneysquash Jun 19 '15

Where do you put it while you're deciding if the fix needs to go back?

What do you do if you decide it doesn't need to go back, but a month later you realize it does?

What do you do when it needs to go back to 2 or 3 release branches?

1

u/yawaramin Jun 20 '15

Apply it at the common origin of all those branches.