Re:The Problem with Git Flow
by donmcronald on Wednesday June 24, 2020 @03:53AM
(#23625289)
That guitar hero thing is hilarious.
Git flow is something I spent a lot of time theory crafting about years ago. I’d say wasted time, but learning is never a waste and one of the things I learned is the value of deferring complexity whenever possible, especially if there’s no downside.
Using a trunk and tag (that’s what I call it) workflow today doesn’t prevent you from adopting something more complex if the need arises, so it makes a ton of sense for it to be the default on new projects, especially for new developers IMO.
Other criticisms of git flow and alternative branching procedures have come up over the years [2] and been discussed here [3][4][5].
A good, simple metric for whether your team is using git well or not is how often a developer is forced to play Guitar Hero [6] just to fix up a bad merge or rebase. The ideal answer is "never"; if it's happening more than a couple times a year, something's wrong.
[1]: https://gist.github.com/jbenet/ee6c9ac48068889b0912
[2]: https://barro.github.io/2016/02/a-succesful-git-branching-mo...
[3]: https://news.ycombinator.com/item?id=9744059
[4]: https://news.ycombinator.com/item?id=22485489
[5]: https://news.ycombinator.com/item?id=11190310
[6]: https://twitter.com/HenryHoffman/status/694184106440200192