I accidentally overwritten the changes of another developer when merging in git. I know how to undo the last commit , i.e. merge.
My problem is that I have already pushed these commits into our online repository. Therefore, if I roll back, merge the merge again (with its modifications this time) and try to click it again, there will be a conflict (right?). How to deal with this?
EDIT To clarify, this is what the situation looks like:
commit A
But in the merge, I accidentally dropped the modifications made to commit A. This is not a problem. I know how to make changes locally (undo a merge). But my problem is that all this has been ported to our shared repository (think github or bitbucket).
source share