Revert a git pull

Posted
git

To revert your most recent git pull -
git reset --keep HEAD@{1}
To view the history of HEAD:
git reflog show
You can then figure out which commit to reset HEAD to:
git reset --keep HEAD@{2}
OR
git reset --keep HEAD@{5}