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 »