git reset --hard your local branch to remove changes from working tree and index,
git push --force (or git push --force-with-lease) your revised local branch to the remote
check the full answer from here
https://stackoverflow.com/questions/3293531/how-to-permanently-remove-few-commits-from-remote-branch