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 I am actually switching to my-branch first and then using the "r o" keys. Not aware of a way to do this without first switching to my-branch except for "!" to call git directly.
Thanks for reminding me on the ”!".This at least saves me changing to the console window.
@johbo
@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