Problem Statement
Why is rewriting public history dangerous and how can teams mitigate the risk?
Explanation
Rewrites change commit IDs, breaking collaborators’ history and remotes. Mitigate with protected branches, disallowing force-push, using merge on shared branches, and rewriting only private branches.
Practice Sets
This question appears in the following practice sets: