I know this question has been answered a couple of times, but so far, every posted solution I tried did not work for me :(
The situation is: We have a working commit in the master branch we want to go back to. Unfortunately, multiple changes (including merges with other branches) have been pushed to master since then.
So what I need to do is to get the master branch to that last working commit again - or checkout the last working commit and "overwrite" the last commits on master with it - on the server (github) repo. I don't really care if the changes made to the last working commit are lost, but It wouldnt hurt if they are kept intact.
Important is that other branches are not touched!!!
git revert did not do the job in multiple ways...