Hacker News new | ask | show | jobs
by Scoring6931 2 days ago
git rebase --update-refs

If one wants to keep it to vanilla git.