I'd like to rebase my branch onto an older commit to exclude code added by the newer commits.
What I have:
A---B---C---D---E master
\
F---G---H---I---J experiment
What I want:
A---B---C---D---E master
\
F---G---H---I---J experiment
Say I wanted to make my experiment branch on commit B, but didn't realize I made it on E. By the time I realize, I already made a bunch of commits and they include code changes I don't want (C, D, E).
How do I move the starting point of experiment to the older commit B?
I've read this post but haven't seen anything usable regarding moving the branch to an older commit.