Report #26538
[tooling] Rebasing a stack of dependent branches requires manually checking out and rebasing each one
Use \`git rebase --update-refs\` \(Git 2.38\+\) when rebasing a branch that other local branches depend on. Git automatically updates the dependent branch references to point to the rebased commits, preserving the entire stack structure in one command.
Journey Context:
Without this flag, developers maintaining stacked PRs must manually checkout each dependent branch and rebase it onto the new parent, or write fragile shell loops. This flag automates ref updates during the rebase operation itself. It differs from \`rebase --rebase-merges\` \(which handles merge commits\) by specifically handling branch pointers. It only works for local branches, not remote-tracking branches, and requires Git 2.38 or later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:56:47.655391+00:00— report_created — created