Problem Statement
Why is it unsafe to rebase public branches and when is it acceptable?
Explanation
Rebasing rewrites commit IDs, breaking collaborators’ histories. It’s safe on private/local branches before pushing or when everyone coordinates (e.g., force-push with lease) and consumers are ready.
Practice Sets
This question appears in the following practice sets: