Menu

Post image 1
Post image 2
1 / 2
0

Rescuing a Broken Master from a Tag, Cleanly Through a PR

DEV Community: cicd·Prasad MK·3 days ago
#MVVqZPu2
#dev#master#branch#origin#restore#fullscreen
Reading 0:00
15s threshold

It happens on real teams. Someone merges the wrong thing, a dependency update silently breaks the build, or a hotfix lands without a proper review. Whatever the reason, master is broken and you still have work to ship. The good news: if you have a working release tag, you have everything you need. This guide walks through the full recovery arc, branching from the tag, adding new code on top, and raising a clean pull request that merges back to master with no surprise conflicts. Why branching from the tag is the right move The instinct is often to "fix master directly." Resist it. You do not know the full extent of what broke, and working on master violates the PR policy anyway. The tag is a precise snapshot of code that worked. Treating it as your new baseline keeps every subsequent decision clean and reviewable.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More