I have a specific commit that was pushed into origin/master but was not ready for prime time. It should have gone into a separate existing feature branch that will eventually be merged into master. How can I pluck the commit out of master and move it into the feature branch?
Here's what I have in the remote branches:
a B c d
master - o --- o --- o --- o -->
\
newbranch - - o --- o -->
p q
The errant commit B
needs to be moved to newbranch
:
a c d
master - o --- o --- o -->
\
newbranch - - o --- o --- o -->
B p q
Is this possible to achieve?