- For stacked PRs, target each PR at its immediate predecessor; when a parent changes, merge it into its immediate child and resolve conflicts normally.
- After a parent is squash-merged as
S, ensure its child contains the parent’s final tip and verify that tip andShave identical trees. Record the child’s current commit, rungit merge --no-edit S^andgit merge --no-edit -s ours S, then usegit diffto confirm that the child’s files did not change and inspectgit diff --merge-base S HEADas the final PR diff before pushing. Stop if either diff contains unexpected changes.