I\'d like to rebase to a specific commit, not to a HEAD of the other branch:
A --- B --- C master
\\
\\-- D topic
<
There is another way of doing it or if you wish to move back to more than just one commit.
Here is a an example to move back to n number of commits:
git branch topic master~n
For the sake of this question, this can also be done:
git branch topic master~1
The command works perfectly on git version 2.7.4. Haven't tested it on any other version.