undo git pull origin master into feature branch

Shell
# shows every {ID}, position of HEAD in last 30 days (by default)
git reflog 

# reset to that specific commit 
git reset --hard <specific_id>
Source

Also in Shell: