After some thinking I think I have a similar case of rebase as the one in the documentation although with other branch names.
Here the docs say to apply
git rebase --onto master next topic
to get
In my case I have a branch called develop where master in the figure is, and a branch called MyFeature where topic is in the figure. In the point where "next" is I don't have a branch but I have a tag "OLDdevelop"
Can I apply git rebase --onto here without expressly creating a branch in the "next" position?


Yes, you can use
git rebasewith tags (any ref really: tags, branches (branch heads), commits). So something likeis totally fine. Even
git rebase --onto tag1 tag2 somecommitworks, but you will end up in detached head state.The full form of
git rebaseis:The man page contains this about
--onto:and about
<upstream>:A tag (usually) points to a commit, so you can use a tag in place of a commit. The tag will be peeled to reach the commit. Git calls these types of refs commit-ish: