Recipe 2.5 Creating the hotfix branch
Problem
An issue has been found with the production system that requires a bugfix.
Solution
Hotfix branches are created from the masterbranch. For example, say version 1.2 is the current production release running live and causing troubles due to a severe bug. But changes on develop are yet unstable. We may then branch off a hotfix branch and start fixing the problem.
$ git checkout -b hotfix-1.2.1 master
$ ./bump-version.sh 1.2.1
$ git commit -a -m "Bumped version number to 1.2.1"
Discussion