If you have just done the rebase, you can try as mentioned here:
git reset --hard ORIG_HEAD
as Jakub Narębski details:
ORIG_HEADis previous state ofHEAD, set by commands that have possibly dangerous behavior, to be easy to revert them.
It is less useful now that Git has reflog:HEAD@{1}is roughly equivalent toORIG_HEAD(HEAD@{1}is always last value ofHEAD,ORIG_HEADis last value ofHEADbefore dangerous operation).
If you have executed some operations since the rebase, the reflog can still help.