Git · Middle · Question 58 of 75
How should a hotfix for production be handled with release branches?
- 1Commit the fix directly on the production server
- ✓Correct answer: Branch from the release tag, then merge the fix back
- 3Wait until the next scheduled release to include it
Explanation
Branching from the deployed tag keeps unrelated work out of the hotfix. Merging or cherry-picking it back prevents the bug from returning in the next release.