git rebase --abort
should abort the rebase operation and return to the previous state. But to be sure, what commands did you enter before?
edit: the output of git reflog
can show you where the rebase started, it would look something like
7d0b010 HEAD@{0}: rebase finished: returning to refs/heads/bran
7d0b010 HEAD@{1}: rebase: adding file in branch
a7e6693 HEAD@{2}: rebase: checkout master
a7e6693 HEAD@{3}: commit: adding file in master
4c00dd7 HEAD@{4}: checkout: moving from bran to master
3cb192a HEAD@{5}: commit: adding file in branch