Is there a way to rebase a single commit from a branch onto another branch?
I have this branch structure:
-- -- -- -- -- (Master)
\
-- -- -- -- -- XX (Feature-branch)
All I want to do is to rebase the last commit of Feature-branch onto master and rollback Feature-branch one commit.
-- -- -- -- -- XX (Master)
\
-- -- -- -- -- (Feature-branch)
How do I do that?
You can cherry-pick XX to master.
And remove the last commit from the feature branch with git reset.