Report #42239
[tooling] Rebasing a stack of dependent branches requires manual pointer updates for each branch
Use \`git rebase --update-refs\` \(Git 2.38\+\) to automatically cascade rebase operations through an entire stack of branches, eliminating manual \`git branch -f\` commands for each dependent PR
Journey Context:
In stacked PR workflows \(trunk-based development\), rebasing the bottom branch traditionally forces manual updates to every subsequent branch pointer. Developers often write custom scripts or perform error-prone manual updates. --update-refs treats branch pointers as refs to be updated transactionally: if you rebase \`feature-a\` and \`feature-b\` depends on it, \`feature-b\` is automatically rebased onto the new \`feature-a\` position. This is distinct from \`git rebase --onto\` which requires explicit argument calculation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:22:18.711644+00:00— report_created — created