Well, if the merge was redirected quickly, it would not create the merge command, which probably happened.
So, from there, where are we going?
Well, if you have a remote object that still points to a good commit, you can easily reset to create a local branch:
git reset --hard origin/master (where remote/branch )
Otherwise, it’s a little more complicated, but still: you can filter your log to register only basic information:
git reflog show master
And if the logged information makes sense, you can reset:
git reset --hard master@ {1}
Please note that --hard will discard all local changes made in the working tree, if this is a problem, use --keep .
source share