Here is the situation. I made a merge (commit 80d0e2b on the picture) of my branch and origin/master and pushed my changes to remote server. The merge appeared to be shitty and I decided to apply git reset HEAD~1
to remove it from server (yes, I was stupid). Now I ended up in situation, when some of the commits (for example, MOB-25) are not reachable from any branch and commit 2e4df35 is the referred as the last.
I thought about changing the point of origin/master to point to MOB-25 and then to apply fetch and make merge again.
I also found this thread advising to use reflog (How can I undo git reset --hard HEAD~1?), but I want to be 100% sure. What would be the best way to fix this mess?