Git: how to remove last commit from remote repository

git reset HEAD^ # remove commit locally
git push origin +HEAD # force-push the new HEAD commit
Original solution I've found here