How to revert few commits on a Git repository

I'm using Bitbucket and I made a few mistakes on my local repo and pushed to the server by mistake, how can I do to revert »

How to push a change in a submodule on Git and do not died trying

Ok, it's a pay in the ass, I'll try to do my best to explain it. First you do your changes and create a new branch, »