Report #62617
[tooling] Rebasing a stack of dependent branches requires tedious manual updates to each branch ref
Use \`git rebase --update-refs main\` when rebasing a stack; Git automatically updates any branch refs pointing to commits in the rebased range to point to the new equivalents
Journey Context:
Without this flag, rebasing a feature branch that has a dependent feature-b branch requires checking out feature-b and rebasing it onto the new feature commit, repeating for the entire stack. --update-refs \(available since Git 2.38\) treats branch refs as pointers to be rewritten during the rebase operation, maintaining the dependency structure without manual intervention. This is safer and faster than scripts or manual rebasing which risk losing the relationship between branches.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:35:12.103281+00:00— report_created — created