Accelerating with MyFlow
As you can see, git
workflows are just a collection of solutions for different use cases. The main difference is in whether they are trunk-based or not and if they are explicit about some things or not. As I find all workflows lacking something, I created my own workflow: MyFlow.
MyFlow is a lightweight, trunk-based workflow based on PRs. MyFlow is not a new invention! Many teams already work this way. It is a very natural way to branch and merge if you focus on collaboration with PRs. I just gave it a name, and I can see people picking it up easily.
The main branch
Since MyFlow is trunk-based, there is only one main branch called main
, and it should always be in a clean state. The main branch should always build, and it should be possible to release it to production at any time. That's why you should protect main
with a branch protection rule. A good branch protection rule would include at least the following criteria:
- Require a minimum...