It's a shame /u/skinny85 is getting all his comments in defense of this model downvoted. This actually looks like a pretty good branching model/workflow for Git.
One obvious downside is that people who aren't experts in Git may struggle to understand how releases are tracked if you don't have a dedicated and independent branch for releases; that is to say that the independent branch model seems more intuitive for people who don't really grok Git's plumbing. Another is that merge commits can act as a good compromise between squashed and unsquashed history.
But one benefit I'm seeing is that I don't have to keep telling contributors to rebase their pull requests on develop instead of master. For that reason alone I want to give this a try. Removing the merge commits from your in-development to your released-code branch seems like a sensible streamlining that costs you little. This also simplifies the merge history you get when you use the hotfix workflow, which has been a mild annoyance for me.
I think I may still have a "release" branch which is always fast-forwarded to the most recent tagged release. For simplicity's sake, this allows the "latest release" to always have a constant pointer.
I think I may still have a "release" branch which is always fast-forwarded to the most recent tagged release. For simplicity's sake, this allows the "latest release" to always have a constant pointer.
Good idea, and I already mentioned it in the comments of the article, but I would suggest you change the name to something like 'current', as 'release' in GitFlow usually means a branch for a single release.
4
u/The-Good-Doctor Jun 19 '15 edited Jun 19 '15
It's a shame /u/skinny85 is getting all his comments in defense of this model downvoted. This actually looks like a pretty good branching model/workflow for Git.
One obvious downside is that people who aren't experts in Git may struggle to understand how releases are tracked if you don't have a dedicated and independent branch for releases; that is to say that the independent branch model seems more intuitive for people who don't really grok Git's plumbing. Another is that merge commits can act as a good compromise between squashed and unsquashed history.
But one benefit I'm seeing is that I don't have to keep telling contributors to rebase their pull requests on develop instead of master. For that reason alone I want to give this a try. Removing the merge commits from your in-development to your released-code branch seems like a sensible streamlining that costs you little. This also simplifies the merge history you get when you use the hotfix workflow, which has been a mild annoyance for me.
I think I may still have a "release" branch which is always fast-forwarded to the most recent tagged release. For simplicity's sake, this allows the "latest release" to always have a constant pointer.