How to do add a fix in the release branch using git flow / hubflow

git, git-flow, github, hubflow

Solution

One of the major points of release branches is to allow for minor bug fixes. So while the release branch is active, you can make fixes directly on the release branch.

After the release branch is finished, i.e. the release has been made, it is merged to master. After that commits should no longer be added to the release branch. Rather, urgent bugfixes done after a release are hotfixes, and should be merged to master. (Non-urgent bugfixes can be created as features, merged to the develop branch and released later)

Conceptually the release branch is "dead" after the release has been made. Only master and develop branches live on continuously.

You are of course free to have a different process, but then you are not strictly following the git-flow model.

Problem

In our project we are following repo model as per http://nvie.com/posts/a-successful-git-branching-model/ . I had been adding features into the develop branch until now, however now our project has created a release branch and I need to add a fix on that release branch. From what I have read , adding a hotfix will add the fix to my master branch and not the release branch. So how do I add a fix on my release branch ?

Original source