I\'d like to rebase to a specific commit, not to a HEAD of the other branch:
A --- B --- C master \\ \\-- D topic
You can even take a direct approach:
git checkout topic git rebase