I was rebasing code in git, I got some merge conflicts. I resolved the conflicts and did:
git add
At this point I forgot to do:
<
I had git rebased, fixed conflicts, git added file with conflicts, and (mistakenly) committed.
I tried the git reset --soft HEAD^ and git reset --hard solutions given, but neither worked for me.
However, just git rebase --abort worked: it took me back to before the start of the rebase with a clean working tree.