I have a linear history like so
----a--b--c--d--e--f---- main
I want to move a series of commits into a new branch and create a merge commit into the old branch, creating a non-linear history like so
----a-------x--d'--e'--f'-- main
\ /
b--c
where x
is the new merge commit.
How do I do this?
Note, the moved commits aren't the most recent ones (see here).