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]

9

u/skinny85 Jun 19 '15

You're probably missing the fact that you tag the release before you merge it to master. This way, you work on the bugfixing on a branch starting from that tag. GitFlow does it the same way.

0

u/[deleted] Jun 19 '15

[deleted]

-18

u/skinny85 Jun 19 '15

Or... I could just leave the branch there... Can you imagine trying to track the history of bugfixes for a release product if you're deleting the branch each time and just going off merges into master. Holy mary mother of god that sounds scary.

The tag tracks that history. Trust me, it's no problem at all.

BTW, I feel like you're resorting to "I'm no worse than GitFlow", but I've never used GitFlow so that's not compelling for me :/

I can just say, "Lucky you" :). I like to think my workflow is superior to GitFlow in every way - I'm not sure how I implied I'm merely no worse, that wasn't my intention.

0

u/[deleted] Jun 19 '15

[deleted]

12

u/Peaker Jun 19 '15

In git, branches and tags are essentially the same, except tags are supposed to be immutable and not move, whereas branches move.

So it sounds like re-creating a branch starting from that tag is merely a minor inconvenience?

0

u/[deleted] Jun 19 '15

[deleted]

10

u/Peaker Jun 19 '15

If you had a branch, it'd just equal the newest tag.

Tags aren't "inside" branches. Branches and tags are just pointers.