Report #87797
[tooling] Rebasing a base branch breaks all child branches in a stacked PR workflow
Use \`git rebase --update-refs main\` when rebasing the bottom of a stack; Git automatically updates all dependent branches to point to the new commits.
Journey Context:
Without --update-refs, developers must manually checkout each child branch and rebase it onto the new parent, which is error-prone and tedious. This flag, introduced in Git 2.38, treats branch refs as pointers that should move with the rebase, effectively treating the entire stack as a single unit. It replaces fragile shell scripts or \`git rebase --onto\` math.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:57:04.408001+00:00— report_created — created