undo pull from another branch git code example
Example 1: undo git pull
git reset --hard master@{"10 minutes ago"}
Example 2: undo git pull origin master into feature branch
# shows every {ID}, position of HEAD in last 30 days (by default)
git reflog
# reset to that specific commit
git reset --hard <specific_id>