Main stuck

Hi, I made a mistake in git: git old_branch origin, now, main is showing the old code that branch had. I tried git pull on main, but that old version persists.

I wanted to undo the command but I can´t find the id of the instruction.

How can I make main to point to the new code again?