Undoing git pull

So you pulled from main but it broke the local repo.

Here's how to fix it

Run:

git reset --hard master@{"10 minutes ago"}
Undo git pull, how to bring repos to old state
Is there any way to revert or undo git pull so that my source/repos will come to old state that was before doing git pull ?I want to do this because it merged some files which I didn’t want to do…