Git flow branching for fixing a bug
git, git-flow
Solution
`git-flow-avh` is what you want
For osx:
- `brew uninstall git-flow #remove your current`
- `brew install git-flow-avh #add the update`
Within project folder:
- `git init`
- you should see amongst prompts - `Bugfix branches? [bugfix/]` which would not have been a prompt with standard `git-flow`
- start a new bugfix - `git flow bugfix start <branch name>`
Problem
I have been using git flow for a while. I was searching for branching model for fixing issues and bugs found in the develop branch. I know we could use hotfix but it is for master branch, or quick bug fixes for the production. Fixing a bug on development is not a feature. I could always reinitialize git flow and overwrite the default prefix branch to bug/. But it needed to reinitialize if I need to start new feature too. Is this a good practice or there is some technique to handle this?