I have a DEV branch with a history looking like this (with each list item being a separate commit):
- feature 5
- feature 4
- feature 3
- feature 2
- feature 1
Suppose I want to "delete" feature 3 from this branch, but I don't want to lose the code in this feature so I want to put it in it's own separate branch.
Basically, from the dev branch above, I want to end up with two branches looking like this:
DEV BRANCH:
- feature 5
- feature 4
- feature 2
- feature 1
NEW BRANCH:
- feature 3
- feature 2
- feature 1
Any ideas how I can achieve this in git?