How can I create a second hotfix branch in Sourcetree when one already exists? Whenever I try to it tells me to finish my current hotfix first. Any way to have multiple hotfix branches?
It initializes an empty GIT repository. Git-flow also has to be initialized. This is done via this Terminal command: Or by just clicking on the Git Flow button in the SourceTree toolbar. In any case you'll be then presented with some options (branch names, prefixes) where you just leave default values for each of them.
The SourceTree website states: Once you’ve made your changes, the hotfix branch is then merged back into both the master branch (to update the released version) and the development branch (to make sure the fixes go into the next release too)
The general idea of git-flow is to use the following branch structure in your repository: 1. Development branch (usually called ‘develop’)
Go back to SourceTree and double-click on the develop branch. In the toolbar click on Pull so you download the new version of develop branch. If you click on History tab, you'll see how a line that represents the feature branch merged into the develop branch. Double-click on the feature branch again.
This command will allow it:
git config --global gitflow.multi-hotfix true
Ok figured it out. Sourcetree by default doesn't allow you to create more than one hotfix branch at a time using their UI/Git Flow. It wants you to "Git Flow > Finish" the first one before making a new one.
But you can create a second hotfix anyways...
Permanent solution for this repository
git config --add gitflow.multi-hotfix true
Now you can as per usual: Git Flow > Start New Hotfix
Temporary solution (allow it just this one time)
git checkout -b hotfix/my_new_hotfix master
Now you have a new hotfix named my_new_hotfix
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