Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create a new hotfix in SourceTree gitflow

enter image description here

Hello this is my git workflow. I'm trying to create by using Sourcetree a new hotfix. Unfortunately I get this error:

There is an existing hotfix branch (issue-#001). Finish that one first.

I have already finished the issue-#001. Why I'm unable to create a new one?

like image 307
Mazzy Avatar asked Apr 04 '15 16:04

Mazzy


People also ask

What is a hotfix Gitflow?

Maintenance or “hotfix” branches are used to quickly patch production releases. Hotfix branches are a lot like release branches and feature branches except they're based on main instead of develop . This is the only branch that should fork directly off of main .

What is Gitflow?

Git flow is a popular Git branching strategy aimed at simplifying release management, and was introduced by software developer Vincent Driessen in 2010. Fundamentally, Git flow involves isolating your work into different types of Git branches.

Is Gitflow local?

git flow is not about remote repository. With git you don't even need a remote repository, you can do it all in your local repository alone. But git flow is valid for all repositories of a project.


1 Answers

There is a configuration option that you can set if you want multiple hotfixes.

git config --add gitflow.multi-hotfix true

This would allow multiple hotfixes, but by default it's not allowed. You can add this option per repository or globally.

like image 118
iAmrSalman Avatar answered Sep 19 '22 15:09

iAmrSalman