How can I do

git rebase --onto main main my-branch

in #magit?

This takes "my-branch", starting at where it forks from main, and puts it on top of current main. This saves switching to "my-branch" first.
#emacs

@kirschwipfel r e : rebase elsewhere and choose your branch?
This requires to switch to the branch to be rebased - which is what I don't want.
@mousebot