You need to delete the last hotfix
that You've created (the branch named only with hotfix
without the slash), before creating a new one. And you'll receive the following message when you try to create the new hotfix
(if you're on the command prompt
):
Switched to a new branch 'hotfix/XXXXX'
Summary of actions:
- A new branch 'hotfix/XXXXX' was created, based on 'main'
- You are now on branch 'hotfix/XXXXX'
Follow-up actions:
- Start committing your hot fixes
- Bump the version number now!
- When done, run:
git flow hotfix finish 'XXXXX'
Run the following command to be able to use multi hotfix branches, if necessary:
git config --add gitflow.multi-hotfix true