Your HEAD is pointing to the most recent point in history though you’re not happy with what’s there.

If you want to return to revision abc1234 but still want to keep the in between history in tact, then run the following commands.

git revert --no-commit abc1234..HEAD  
git commit  

This puts all the changes between abc1234 and HEAD into one commit. It’s a “rewind” with a record!