What I have (assuming left is master, and the right is a feature branch):
| * part of feature 2 (HEAD)
| |
B * |
| * bug fix (unrelated to feature)
| |
| * part of feature 1
|/
A *
|
So the obvious issue here, is that a bug fix (unrelated to the feature) got committed into a feature branch. Assuming this bug fix is critical, and needs to be applied to master before the feature branch gets merged back in, but the feature branch should also benefit from it.
So I believe I want to pick the commit out of the feature branch, apply it to master (in the right place), and then change the feature branches starting point to be after that commit.
What I think I want, in git topology:
| * part of feature 2 (HEAD)
B * |
| * part of feature 1
|/
bug fix *
|
A *
|
How can I do this in terms of git on the command line?
I would :
Every command is standard git, so with a little research you should be good