Rebase

Interactive:

git rebase -i HEAD~3