The situation
Your feature branched off `develop`, but `develop` was deleted in favor of `main` and the histories diverged. You need to replant your branch on top of main.
`git rebase --onto <newbase> <oldbase> <branch>` replays only YOUR commits onto the new base.