Hotfixes

Hotfixes are patches that are applied to critical bugs – these are mainly showstopping issues that are found in the master branch. In these cases, you make a branch from the master directly and usually prefix the branch name with hofix-, then make the fix on a new commit and merge back into master, tagging the master release with a new version (usually a minor or patch version, depending on your versioning strategy). After you've merged into master, you also need to merge this into develop so that develop has the latest patches and fixes and you don't conflict in future releases. The hotfix can then be safely deleted as it is no longer required:

Get GitLab Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.