⬅️ Git

  • Stack Overflow

  • With git reflog check which commit is one prior the merge

Then you can reset it using:

git reset --hard commit_sha

Be aware that any modified and uncommitted/unstashed files will be reset to their unmodified state