I know what are bugfix, hotfix and feature branches.
But the thing that I can't grasp is support command as git flow support start <version> <branch>
could someone explain this command with a simple scenario?
Git-flow is a wrapper around Git. The git flow init command is an extension of the default git init command and doesn't change anything in your repository other than creating branches for you.
A Gitflow hotfix branch is only required when a critical bug or security flaw is found in live, publicly facing and globally accessible applications or binaries. The flaw is in a tagged commit on the Git master/main branch, and it has to be addressed immediately.
The Gitflow Workflow defines a strict branching model designed around the project release. This workflow doesn't add any new concepts or commands beyond what's required for the Feature Branch Workflow. Instead, it assigns very specific roles to different branches and defines how and when they should interact.
Here's the quoted definition from https://gitversion.net/docs/git-branching-strategies/gitflow-examples
Support branches are not really covered in GitFlow, but are essential if you need to maintain multiple major versions at the same time. You could use support branches for supporting minor releases as well. If you are just supporting the majors, then name your branch
support/<major>.x
(i.esupport/1.x
), to support minors usesupport/<major>.<minor>.x
orsupport/<major>.<minor>.0
. (i.esupport/1.3.x
orsupport/1.3.0
)
The point here is to have a branch which needs to be supported for some time in parallel to develop/master.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With