Report #12155
[tooling] rebasing a stack of branches without losing branch pointers
Use \`git rebase --update-refs main\` when rebasing a feature branch that has dependent branches stacked on top; Git automatically updates the branch pointers for the entire stack.
Journey Context:
Without this, rebasing \`feature-a\` when \`feature-b\` depends on it requires manually checking out each dependent branch and resetting to the new commit hash, which is error-prone and tedious. The alternative \`git rebase --onto\` requires calculating commit ranges manually. --update-refs was added in Git 2.38 and is idempotent; it updates any branch refs that point to commits being rebased.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T15:14:36.786771+00:00— report_created — created