In your case, there is no HEAD~2, since you only have 2 commits, hence the "Needed a single revision" error message.
Try:

git rebase -i --root

see more at "Change first commit of project with Git?"