A Custom Function To Rebase All Worktrees in Magit

This post shows how to use a custom function to rebase all changed worktrees into the main branch in Emacs Magit.