Report #36648
[tooling] Rebasing a stack of dependent branches requires manually updating each branch reference after the rebase completes
Use \`git rebase --update-refs main\` when rebasing a stack; Git automatically updates all branch pointers that were pointing to commits in the rebased range, preserving the entire stack structure.
Journey Context:
Without this flag, rebasing a stack of 3 branches requires manually checking out each one and resetting it to the new commit hash. \`--update-refs\` \(Git 2.38\+\) treats branch references as 'soft' and updates them automatically during the rebase. This prevents the common error where a developer rebases \`feature-a\` then discovers \`feature-b\` \(which was based on \`feature-a\`\) now points to the old, orphaned commits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T15:59:27.539647+00:00— report_created — created