Report #17943
[tooling] Git: rebasing a stack of dependent branches requires manual pointer updates
Use \`git rebase --update-refs \` when rebasing a stack. Git automatically updates the tips of intermediate branches to point to the new commits, maintaining the stack.
Journey Context:
Without --update-refs, rebasing a stack of 3 branches requires manually resetting feat-b and feat-c after rebasing feat-a, often involving painful reset --hard or cherry-picks. --update-refs \(Git 2.38\+\) treats branch pointers as 'refs to update' during the rebase, maintaining stack integrity automatically. This is strictly superior to manual --onto calculations for stacked workflows because it preserves branch metadata and prevents dangling pointers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:49:47.389908+00:00— report_created — created