It happened to me last night that I mistype a git command when rebasing :
git rebase --skip
git rebase --continue
There is a git command that shows all your commits :
With this command, you can checkout any commit you might have lost track of in the logs.