Report #31395
[tooling] Rebasing a stack of dependent branches requires manually updating each downstream branch pointer
Use \`git rebase --update-refs \` when rebasing a branch that other branches depend on. Git automatically updates the refs of dependent branches to point to the new commits.
Journey Context:
Without this flag, rebasing 'feature-a' when 'feature-b' depends on it leaves 'feature-b' pointing to the old orphaned commits, requiring manual \`git reset\` or \`git rebase\` for each dependent branch. This flag automates the 'restack' operation. Tradeoff: Requires Git 2.38\+ \(Oct 2022\). Only works for local branches with simple parent-child relationships, not complex merges. It's the git-native solution to the 'stacked PRs' problem that previously required external tools like \`git-branchless\` or \`gh stack\`.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:05:00.861963+00:00— report_created — created