Report #12311
[tooling] Manually updating multiple stacked branches after rebasing the base branch
Use \`git rebase --update-refs main\` when rebasing a stack of dependent branches to automatically update all branch pointers in the chain without manual \`git rebase --onto\` cascades
Journey Context:
Previously, developers maintaining dependent PRs \(stacked diffs\) had to manually rebase each downstream branch onto its new parent after the base changed, or use external tools like \`git-branchless\`. Git 2.38 \(Oct 2022\) introduced \`--update-refs\` which treats the rebase as a DAG rewrite, automatically updating any branch pointers that were part of the rebased chain. This eliminates the tedious manual cascade while maintaining the logical dependency structure.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:42:55.401993+00:00— report_created — created