### Introduce hot fix branch management
After the introduction of hot repair technology, it is necessary to introduce a Fix branch for better branch management, so the branches are as follows:
- Master branch: This branch is a stable branch. It cannot have a COMMIT, but it can have a tag.
- Dev branch: Dev branch, a branch that develops new features, fixes bugs, etc. The code is merged by a personal branch. After each release of a new version, you need to override it using the Master branch.
- Personal branch: Personal development branch.
- Fix branch: dedicated to managing online BUG hotfixes.
### Hotfix process
When hot fixes are not introduced, the version management strategy is simple:
After introducing hot fixes, a dynamically updated version was inserted between different versions:
In addition to fixing bugs, hotfix technology can also add some holiday features.
The following takes online BUG repair as an example, and the related process of release and online BUG repair is as follows:
- The personal development branch is merged into the dev branch
- The dev branch test passes
- The dev branch merges with the master branch, tags it, and releases the version
- There’s a BUG on the line
- Merge the current stable version of the Master branch into the Fix branch, and then fix the corresponding BUG
- Test verification passed
- Merge the corresponding commit into the Master branch
- Generate the corresponding Patch file and submit it to the server
- The user APP requests the server to download and install Patch, restart and fix the BUG
- In the next iteration, the master branch is merged into the Dev branch (the online BUG fix submission is already there), and the personal branch is pulled from the Dev branch for development
- Finally, repeat process 1
Generally speaking, are the beginning of the release version, mid-release patch version, which, there is no BUG if the patch version can not.
### Introduces issues to be aware of after hot fixes
After the introduction of thermal repair, it is not easy to rest assured. The following problems need to be noted:
- The emphasis is still on code quality and not too much on hotfix technology
- The release of hot repair technology should be as strict as the normal release, and should be verified through rigorous testing
- It is better to have a patch version between versions