undo git pull origin master 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>
# shows every {ID}, position of HEAD in last 30 days (by default)
git reflog
# reset to that specific commit
git reset --hard <specific_id>