I am very bad situation due to a mistake.
I cloned master branch of remote private github repo, created my own branch a while ago.
I started doing edits, created a github pull request from within Jetbrain IDE a while back which was fine.
Today after making more changes in my code, I wanted to commit my changes to github earlier pull request so that the team can see my new changes. By mistake I merged my changes with remote master branch. The remote master branch show my changes which also has commit number that looks like 4f56ec45. I want to undo this commit.
I followed jetbrain online docs but it ended reverting my local changes, my IDE shows with my changes gone which is not what I want. The remote merge with master is still there.
Please help me how do I undo remote merge with master as if it never happened or at least it should undo all my changes to remote master.