Report #50526
[tooling] Rebasing a stack of branches requires manually updating each branch pointer
Use git rebase --update-refs main to automatically move all dependent branch pointers during rebase
Journey Context:
When working with stacked PRs \(feature-a depends on feature-b depends on main\), rebasing feature-b onto main detaches feature-a. Traditionally you must manually git checkout feature-a && git reset --hard feature-b after each rebase. --update-refs automatically rewinds and reattaches all descendant branches, making stacked workflows viable without complex automation scripts. This is essential for trunk-based development with high-throughput teams.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:17:34.954335+00:00— report_created — created