Firstly you need select th commit desired or simply reset the HEAD in current branch, (can check if you are in current branch using git branch.
git reset HEAD^ --hard // Or git reset +[commit]^ --hard
After that we need to force push doing this way: