After the operation git pull ORIG_HEADshould indicate the previous value HEAD. You must be able to:
git reset
And go back to where you started work pull. You can run:
git show ORIG_HEAD
To see where exactly it ORIG_HEADpoints before running the command reset.
An alternative solution would be to create a new branch based on ORIG_HEAD:
git checkout -b newbranch ORIG_HEAD
Make sure everything looks as you expect, then delete the old branch and rename it new branch.
. HEAD ORIG_HEAD .