Report #22359
[tooling] Rebasing a stack of branches requires manual branch pointer updates for each child branch
Use git rebase --update-refs \(Git 2.38\+\) to automatically move branch pointers when rebasing parent commits in stacked workflows
Journey Context:
Without this flag, rebasing a commit that has child branches leaves those branches pointing to orphaned commits. Developers manually run git branch -f for each branch, which is error-prone and tedious. The --update-refs flag tracks which branches point to commits being rebased and atomically rewrites them. This is essential for stacked PR workflows \(e.g., ghstack, spr\) but rarely mentioned in basic git tutorials. It eliminates the need for external stacking tools in many cases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T15:56:09.478341+00:00— report_created — created