We are working on a single branch with about 20 developers. Yesterday someone accidentally messed up with the auto merge commit.
He had a pull taken 24 hours(span-1) before committing. After committing and taking a pull he accidentally reverted all files shown in the auto merge commit believing that they shouldn't be committed as he had not changed those files. After that he committed the auto merge and pushed it. After 24 hours(span-2) of this push we recognized this issue.
Now the problem is, in span-1 we have around 25 commits by 10 developers and similar in span-2. The changes are on same/different files by same/different developers.
We tried cherry picking but it asks for conflict resolution which is definitely not possible in our case as many developers are involved.
Is there a way to easily solve this problem. Basically I want to delete that merge commit. If required we can even delete the actual commit done by that developer between span-1 and span-2. Having these changes in history will not be a problem. We just want a clean repository.
Note: The question here doesn't address my specific problem. It is a general question on deleting git commits. Also I am not interested in deleting/rewriting history. We just want the rolled back changes due to bad merge to be available on the remote repository without having to resolve merge conflicts