I have a situation here where there are 2 commits done by another collaborator which seems to be the wrong files. I am the owner of the repository and would like to revert those 2 commits done by the other collaborator. From my terminal, I tried the following.
git log -2
and it just says the last 2 commits which I did. I want to know how I can reset the last 2 commits and change the HEAD to the commit before those 2.