I have this:
A -- B -- C -- D -- E -- F -- G (master branch)
Where F and G are my recent commits and E is the last commit from the origin.
What I need is to make F and G into a separate branch, which other questions cover, but based on commit B, leaving this:
A -- B -- C -- D -- E (master branch)
\
F -- G (my new branch)
The reason is that commit B is tagged as the stable release (in use on other systems not maintained using git) and I need to make a patch file of commits F and G against that release.
But this creates only
now you need reset master history:
this will make