I have this (git repo):
A--B--C--D ->master
\--E ->dev
And I want to bring only commit D to branch dev (D doesn't depend on C), so that:
A--B--C--D ->master
\--E--D' ->dev
But D' shouldn't get added to master after a merge:
A--B--C--D--E' ->master
\--E--D'/ ->dev
This is because I want to bring only a file update without having to pollute dev with new files that C (which represents another, big merge) adds.
I'm guessing I need to use git rebase, but I can't guess how.