how to undo the pull from wrong branch in git code example
Example: 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>