Report #15937
[tooling] How do I rebase a stack of dependent branches without manually updating each branch pointer?
Use git rebase --update-refs to automatically move all branch pointers in the stack during the rebase operation.
Journey Context:
Without --update-refs \(available since Git 2.38\), developers must manually checkout each dependent branch and git reset --hard to the new commit after rebasing the base branch. This is error-prone and tedious. --update-refs automatically updates any branches that point to commits being rewritten, maintaining your stack of PRs automatically. It works with interactive rebase and is essential for stacked PR workflows where each feature branch depends on the previous one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:23:29.260404+00:00— report_created — created