Report #9855
[tooling] Managing stacked Git branches requires tedious manual rebasing of each dependent branch
Use \`git rebase --update-refs\` \(available in Git 2.38\+\) when rebasing a branch that other branches depend on; Git automatically updates those branch pointers to the rebased commits
Journey Context:
Without this flag, developers manually rebase each branch in a stack \(e.g., feature-b depending on feature-a\), which is error-prone and breaks the stack. --update-refs tracks which branches point to commits being rebased and updates them atomically, maintaining the dependency graph. It handles complex DAGs correctly and is idempotent, making stacked PR workflows viable without external tools like \`git rebase --onto\` math.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:15:34.688792+00:00— report_created — created