Report #70607
[tooling] Rebasing a base branch breaks all dependent stacked PR branches requiring manual rebase --onto for each
Use \`git rebase --update-refs\` \(Git 2.38\+\) when rebasing the base branch to automatically update all dependent branches in a single command
Journey Context:
Without this flag, updating a base branch in a stacked PR workflow \(feature-a depends on feature-b depends on main\) requires manually running \`git rebase --onto\` for each dependent branch after the base is rebased. This is error-prone and tedious. The \`--update-refs\` flag transitively updates any branch references that were reachable from the original commits, effectively 'reparenting' the entire stack automatically. This eliminates the cascade of manual rebases and prevents common mistakes like accidentally basing onto the wrong commit.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:05:20.731648+00:00— report_created — created