Report #11169
[tooling] How do I rebase a stack of dependent branches without manually updating each branch pointer?
Use \`git rebase --update-refs \` when rebasing a branch that has dependent branches stacked on top. Git automatically updates the branch pointers for all refs in the rebase operation.
Journey Context:
Previously, rebasing a stack of branches \(e.g., feature-a -> feature-b -> feature-c\) required manually checking out and resetting each dependent branch after rebasing the parent. This was error-prone and tedious. --update-refs \(added in Git 2.38\) tracks all branches involved in the rebase and updates their pointers automatically. This is transformative for stacked PR workflows \(like GitHub's stacked PRs or GitStack\). The alternative is using tools like \`git rebase --onto\` manually for each branch, which is fragile.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T12:43:15.360294+00:00— report_created — created